SoapHeader

Adnan Raja
2009-01-05
2013-06-06
  • Adnan Raja

    Adnan Raja - 2009-01-05

    The webservice requires soap header authentication:

    <AuthHeader xmlns="http://abc.com">
          <Username>string</Username>
          <Password>string</Password>
    </AuthHeader>

    How can I use nusoap to generate soap header for above webserivce?

     
    • pixelchutes

      pixelchutes - 2009-02-10

      Try using the setHeaders() method:

      $client = new nusoap_client( 'http://domain/path/to/webservice', 'wsdl' );
      $client->setHeaders('<AuthHeader ...></AuthHeader>');

       

Log in to post a comment.