5360NTLM with WSDL?
- Apr 14, 2006I was wondering if anyone had experience accessing a WSDL on a
Microsoft IIS server(for example, I am accessing one on a Microsoft
I can't seem to get it to authenticate, I always get a 401 error. Here
is my code:
my $user = 'DOMAIN\user'; # The auth module splits this on the '\'
my $pass = 'password';
my $server = '#########'; # I enter the IP here
# Set up the ntlm client and then the base64 encoded ntlm
my $ua = new
$ua->agent("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)");
# This is required to store the credentials, note that the realm
$ua->credentials($server.':80/ProjectServer', '', $user, $pass);
my $service = SOAP::Lite
I get a message at the line where the service is set that says...
Service description 'http://######:80/ProjectServer/PDS.WSDL' can't be
loaded: 401 Unauthorized
Does anyone know how this can be done? I know my UserAgent is correct,
it works for XML-RPC.
- Next post in topic >>