in reply to Re: Using SOAP::Lite, is it possible to get rid of SOAPStruct from request header XML
in thread Using SOAP::Lite, is it possible to get rid of SOAPStruct from request header XML
Right now UserName, Password and cusip tags are not prepended with appropriate tags, so to make it work I can manually add "namesp2:" prefixes like this:my $service = SOAP::Lite->new(uri => $soapaction, proxy => $endpoint); my $header = SOAP::Header->new(uri => 'www.ABSNet.net'); $header->name(AuthHeader => {'UserName' => $username, 'Password' => $p +assword}); $service->autotype(0); $service->on_action(sub { return $ACTION; }); my $response = $service->AddCUSIP(SOAP::Data->name("cusip" => $input), + $header);
But my feeling is that there has to be a better way. Thanks...$header->name(AuthHeader => {'namesp1:UserName' => $username, 'namesp1 +:Password' => $password}); my $response = $service->AddCUSIP(SOAP::Data->name("namesp2:cusip" => +$input), $header);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using SOAP::Lite, is it possible to get rid of SOAPStruct from request header XML
by gellyfish (Monsignor) on Sep 07, 2005 at 12:02 UTC |