in reply to Soap::Lite Authentication
It looks like the service is not using basic authentication, but Soap Header authentication.
I think the code is going to look something like this:
Without seeing the WSDL, I can't be sure--not that I'm a SOAP expert.use SOAP::Lite; use strict; my $service = SOAP::Lite -> service('http://server/GetData.asmx?WSDL'); my $AuthHeader = SOAP::Header->new( name =>'AuthenticationHeader', attr => { xmlns => "http://www.server.com/" }, value => {username => 'user', password => 'pass' }, ); my $result = $service->GetIt($AuthHeader);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Soap::Lite Authentication
by Anonymous Monk on Jul 01, 2012 at 04:40 UTC | |
by Anonymous Monk on Jul 01, 2012 at 06:13 UTC |