We are trying to build a script for webservice which required wsse:security element appended in the actual request. We have used the web_service_set_security() fucnction to create the wsse:security element, however the generated element is different from the actual one(working in SOAP UI). Hence we are getting Security failed error. wsse:Nonce encoding type is missing in LR. Please suggest how to recreate the below wsse:security tag using web_service_set_security() .
Expected wsse:Security Tag:
<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-***************">
<wsse:Username>**********</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">***********************</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">***********************</wsse:Nonce>
<wsu:Created>2016-08-22T09:03:52.002Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
Header Generated in LR:
<wsse:Security soapenv:mustUnderstand="1">
<wsu:Timestamp wsu:Id="Timestamp-7a67daa6-8c79-474b-8880-e5eea0bc014c">
<wsu:Created>2016-08-22T10:22:22Z</wsu:Created>
<wsu:Expires>2016-08-22T10:27:22Z</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="SecurityToken-91b388de-15b0-4e58-bb7d-0abec5758b37">
<wsse:Username>*******</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">************************</wsse:Password>
<wsse:Nonce>************************</wsse:Nonce>
</wsse:UsernameToken>
</wsse:Security>
Thanks in Advance.