'Modify WSDL for UsernameToken

I need to create a service consumer according to a WSDL i'm receiving. The problem is that the WSDL the provider is sending to me is incomplete, so i'm trying to complete it myself.

Which tags should i add to WSDL in the "Policy" section so my request can add the following information in the Header section:

      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
     <wsse:UsernameToken wsu:Id="UsernameToken-3CF14BFE01F9FB23F516465209111291">
        <wsse:Username>USU-GI-EIPA-SAPISUFR</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">aedECAFHtuZeN65p</wsse:Password>
        <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">+V3WC2ADtrEGWFjm6wDInQ==</wsse:Nonce>
        <wsu:Created>2022-03-05T22:55:11.128Z</wsu:Created>
     </wsse:UsernameToken>
  </wsse:Security>

Much Regards!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source