11 Replies Latest reply on Mar 22, 2012 4:00 AM by muralidharan a

    How to add parameters to the SOAP Header of the SOAP Request

    Gerbrand de Goeij Newbie

      Hi,

      I'm using the SOAPClient class to prepare a SOAP message to call an external webservice. Off course, based on the examples, I am able to specify the applicable parameters of the SOAP Body using the 'option 2' of the SOAP Request Message Construction.

      But now I also need to add an element with a value to the SOAP Header (so the <soapenv:Header>) from my 'MyRequestAction'. And off course the value of this element changes with every request.

      I really need some help here. Because all the examples only cover the SOAP Body part. Thanx!!

      Gerbrand