[Xml-compile] Beginner's question: How to access secured WS with
username and password
Tapio.Niva at tieto.com
Tapio.Niva at tieto.com
Thu Feb 11 11:54:24 GMT 2010
Hello, I tried XML::Compile with wsdl using script like below:
#!/usr/bin/perl
use XML::Compile::WSDL11;
use XML::Compile::SOAP11;
use XML::Compile::Transport::SOAPHTTP;
use Log::Report mode => 'DEBUG';
my $nodewsdl = "NodeBean.wsdl";
my $wsdl = XML::Compile::WSDL11->new($nodewsdl);
my $server = 'user:password\@localhost';
my $call = $wsdl->compileClient( operation=>'getNodes',server=>$server );
my %request = ('filter'=>{'condition'=>{'name'=>'name','operator'=>'LIKE','value'=>'VJHASW%'}});
my ($nodes, $trace) = $call->(%request);
Something is obviously wrong in my script, because the result was "received 401 Unauthorized", while I know (tested by other means) that user and password are actually right.
Any ideas ?
Thanks in advance,
Tapio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20100211/0d1392c4/attachment.htm
More information about the Xml-compile
mailing list