Loading ...
Sorry, an error occurred while loading the content.

6035RE: [soaplite] How do I add a namespace to the soap header

Expand Messages
  • chris
    Oct 17, 2007
    • 0 Attachment

      Thank you Graham - that worked perfectly.


      From: soaplite@yahoogroups.com [mailto:soaplite@yahoogroups.com] On Behalf Of Graham Irvine
      Sent: 15 October 2007 23:22
      To: oldfic4
      Cc: soaplite@yahoogroups.com
      Subject: Re: [soaplite] How do I add a namespace to the soap header


      oldfic4 wrote:

      > How do get soaplite to add the xmlns:intf ns to get the soap envelope
      > to look as below?
      > <soap:Envelope xmlns:soap="
      > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      > xmlns:intf="http://session.webservices.thefirm.uk">
      > Thanks

      something like this will do it.

      my $soap = SOAP::Lite->proxy($proxy);


      You might have to pass an attribute to your soap method too
      depending on how strict the doc literal server is.

      something like

      my $soapmethod=SOAP::Data->name($method)
      ->attr({xmlns => $namespace});

    • Show all 5 messages in this topic