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

passing xml in soap header

Expand Messages
  • aahirrao <aahirrao@yahoo.com>
    Hi, Have some basic question using SOAP::lite for perl. Want to pass xml in soap header so doing this way: #!perl -w use SOAP::Lite +trace = all; my $test1 =
    Message 1 of 1 , Jan 16, 2003
    • 0 Attachment
      Hi,
      Have some basic question using SOAP::lite for perl. Want to pass
      xml in soap header so doing this way:
      #!perl -w
      use SOAP::Lite +trace => all;
      my $test1 = SOAP::Data->type(xml
      => "<CustomerCredentials><username>user</username><password>password</
      password></CustomerCredentials>");

      print $serializer->envelope('method' => 'Customer',
      SOAP::Header->name(customer => $test1 ));

      print SOAP::Lite
      -> uri('http://tempuri.org/NameAddressService')
      -> proxy('http://localhost.abc.com/WebProjectWS/servlet/rpcrouter')
      -> getNameAddress
      ("testuser")
      -> result;


      But seems it still not passing soap envelope properly.
      Is there anything am missing out here.

      Can anybody please help on this?

      Thanks in advance,
      -Aparna
    Your message has been successfully submitted and would be delivered to recipients shortly.