logo       

Perl WS and SOAP::Lite consuming joy: msg#00245

org.user-groups.dotnet.padnug

Subject: Perl WS and SOAP::Lite consuming joy


Hi all,

I have an IIS-hosted WS. IIS is set to allow anonymous access, NTLM,
and basic authentication.

Various flavors of consumers work fine with it. However I am trying to
integrate with a perl client with SOAP::Lite and am getting the
following error:

401 Unauthorized at dataloader.pl line 16

The only way I'm able to get it to work is if I embed my domain
credentials (password included!) as in:

________________________________

use SOAP::Lite;
use File::Copy;

#sub SOAP::Transport::HTTP::Client::get_basic_credentials
#{
# return 'amr\\cgoldfar' => 'notGonnaPostIt';
#}

my $soap = SOAP::Lite
-> uri('http://traqs.intel.com/')
-> on_action(sub { join '/', 'http://traqs.intel.com, $_[1] })
-> proxy('http://traqs.intel.com/webservices/traqsservice.asmx');

my $xmlDirectory = $soap -> GetPathToLogsDirectory() -> result;
________________________________


I'm not a perl expert by any stretch. Is there any way I can not
require get_basic_credentials?

Thanks,

Christopher Goldfarb
Sr. Software Engineer, Intel



[Non-text portions of this message have been removed]






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise