diff --git a/lemonldap-ng-portal/example/scripts/buildPortalWSDL b/lemonldap-ng-portal/scripts/buildPortalWSDL
similarity index 96%
rename from lemonldap-ng-portal/example/scripts/buildPortalWSDL
rename to lemonldap-ng-portal/scripts/buildPortalWSDL
index 239b9cb90..71c2a5426 100644
--- a/lemonldap-ng-portal/example/scripts/buildPortalWSDL
+++ b/lemonldap-ng-portal/scripts/buildPortalWSDL
@@ -1,27 +1,26 @@
#!/usr/bin/perl
-use Lemonldap::NG::Portal::SharedConf;
+use Lemonldap::NG::Portal::Main;
-my $self = Lemonldap::NG::Portal::SharedConf->new( {} );
+my $self = Lemonldap::NG::Portal::Main->new( {} );
-unless ( $self->{Soap} ) {
- print STDERR "Lemonldap::NG Portal SOAP capability is disabled.\n"
- . "Set 'Soap' option to 1 in manager or lemonldap-ng.ini to enable it.\n";
+unless ( $self->conf->{soapConfigServer} or $self->conf->{soapSessionServer} ) {
+ print STDERR "Lemonldap::NG Portal SOAP capability is disabled.\n";
exit;
}
-my $portal = $self->{portal};
+my $portal = $self->conf->{portal};
$portal .= "index.pl" if ( $portal =~ /\/$/ );
-my @cookies = ( $self->{cookieName} );
-push @cookies, "$self->{cookieName}http"
- if ( $self->{securedCookie} >= 2 );
+my @cookies = ( $self->conf->{cookieName} );
+push @cookies, "$self->conf->{cookieName}http"
+ if ( $self->conf->{securedCookie} >= 2 );
my $cookieList = join "\n",
map { "" } @cookies;
my $attrList = join "\n",
map { "" }
- $self->exportedAttr;
+ $self->conf->{exportedAttr};
print <