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

4047Adding Headers

Expand Messages
  • woto19
    Oct 20, 2004
    • 0 Attachment
      Dear all,

      i tried to find this in recent postings but I didn't find
      a solution that works for me ...

      So here's my question:

      I'd like to consum a WebService by WSDL. This WebService needs
      an authentication envelope:

      <AuthenticationInfo>
      <username>User</userName>
      <password>Pass</password>
      </AuthenticationInfo>

      I tried to attache a header but I did'n succed
      as I always have some probelems getting t his
      running:

      #!perl -w

      use SOAP::Lite (+trace => all, maptype => {});

      my $service = SOAP::Lite
      -> service('http://host/arsys/WSDL/nb/Grid_HelpDesk');

      my $header = SOAP::Header->name(AuthenticationInfo => { password =>
      'PASS', userName => 'user'});

      my @param = ($header,
      SOAP::Data->name("Request-ID" => '00001'));

      my @myresult= $service->OpGet(@param);
    • Show all 5 messages in this topic