phnowicki has asked for the wisdom of the Perl Monks concerning the following question:
Long time gawker - first time poster.
I have a web service that I am trying to make some calls to. I have generated stubs with the wsdl2perl script, but my calls to the service are missing required headers.
From what I understand, this is expected because the wsdl typically won't contain header information, so I am assuming that I need to manually add it I have tried a few different things to get my header information to the call, but I'm striking out. The closest thing that I have gotten back when I try to pass a SOAP::Header object to the call is this:
"Can't locate object method "serialize_qualified" via package "SOAP::Header" at C:/Perl/site/lib/SOAP/WSDL/Serializer/XSD.pm line 61."
I receive that message when I try something along these lines:my $header=SOAP::Header->name("Test"=>"Value"); $response = $interface->prepareRemoteUpgrade( { args0 => { # MyTypes::UpgradeFile user => "test", # string password => "password", # string }, args1 => "false", # boolean }, $header, );
The body of my call is correct. It's just the header I need to update. I appreciate any direction you can provide on this. Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Header passing with SOAP::WSDL
by Anonymous Monk on Oct 05, 2014 at 09:32 UTC |