0 Replies Latest reply on Jul 4, 2017 7:54 AM by Bharat Pinjani

    Add UsernameToken and Timestamp soap header in switchyard.

    Bharat Pinjani Newbie

       

      Hi Team,

       

      I am trying to call some external service from Switchyard, and external services having below header in request xml. Could you please explain me or give me solution for add below header in request xml.

       

       

          <wsse:Security xmlns:wsse=

       

      "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">

       

      <wsu:Timestamp xmlns:wsu=

       

      "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

       

      <wsu:Created>2017-05-19T14:13:19.704Z</wsu:Created>

       

      <wsu:Expires>2017-05-19T14:14:49.705Z</wsu:Expires>

       

      </wsu:Timestamp>

       

      <wsse:UsernameToken xmlns:wsu=

       

      "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="unt_20">

       

      <wsse:Username>thgrepton</wsse:Username>

       

      <wsse:Password Type=

       

      "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Th123456</wsse:Password>

       

      </wsse:UsernameToken>

       

      </wsse:Security>