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

    Help with AddSOAPRequestHeader method

    komputerkontroller
      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">
      <wsu:Created>2006-10-05T13:59:31Z</wsu:Created>
      <wsu:Expires>2006-10-05T14:04:31Z</wsu:Expires>
      </wsu:Timestamp>
      <wsse:UsernameToken wsu:Id="SecurityToken-d1370982-78d0-42f6-b4c8-1b2436005cde">
      <wsse:Username>myusername</wsse:Username>
      <wsse:Password Type=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#Passwor dText">mypass</wsse:Password>
      <wsse:Nonce>pUs9fli84lbLpac5hJ3K4g==</wsse:Nonce>
      <wsu:Created>2006-10-05T13:59:31Z</wsu:Created>
      </wsse:UsernameToken>
      </wsse:Security>

      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