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!


In reply to Header passing with SOAP::WSDL by phnowicki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.