Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I edit the SOAP envelope and header with Perl's SOAP::Lite?

I'm trying to modify the soapenv:Header to include addressing in my soap request

my $header=SOAP::Header->name("Header")->prefix("soap")->uri("http://www.w3.org/2005/08/addressing");

When I send the request:

print $soap->call($header, $security->value(\$userToken, $action, $message))->result; 

I receive the following...

<"soap:Header soap:Header xmlns:soap="http://www.w3.org/2005/08/addressing" />

I need to try and override the original <soap:Header> I need to do the same for the <soap:Envelope>

Would be greatly appreciated if someone could help out :-)

like image 655
Shayne Avatar asked Nov 15 '22 12:11

Shayne


1 Answers

The first argument to "call" is the method name, not the header.

like image 108
junk Avatar answered Dec 09 '22 14:12

junk