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

6033Re: [soaplite] How do I add a namespace to the soap header

Expand Messages
  • Graham Irvine
    Oct 15, 2007
    • 0 Attachment
      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="http://schemas.xmlsoap.org/soap/envelope/"
      > 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