0 Replies Latest reply on Oct 6, 2006 12:42 AM by komputerkontroller

    Help with AddSOAPRequestHeader method

      I have the following XML that i need to add to the SOAP header before calling a webservice that is using WS-Security (hence the added headers)

      <wsse:Security soap:mustUnderstand="1">
      <wsu:Timestamp wsu:Id="Timestamp-15360f9f-15f3-466d-a27f-b7f0712304d6">
      <wsse:UsernameToken wsu:Id="SecurityToken-d1370982-78d0-42f6-b4c8-1b2436005cde">
      <wsse:Password Type=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#Passwor dText">mypass</wsse:Password>

      How do i add this using the AddSOAPRequestHeader?
      I tried creating an XML object and send that, but XMLParse keeps telling that a 'wss' namespace isnt defined, when i add that
      it cries about the "soap:envelope" namespace and so on.

      Im clueless how to use AddSOAPRequestHeader here since much of these are attributes to tags and not just values

      please help