You need to sign in to do that
Don't have an account?
Priya Singh 2
ws Security header in SOAP XML request
Hi,
My webservice expect a ws security header to be added in the request SOAP XML send to external system. I am able to make a call through SOAP UI but not able to figure out how to write a class to perform same functionality. Below is my sample xml
<soapenv:Envelope xmlns:onv="https://www.xyz.com/services/ONVInterface.wsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<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>
<wsse:Username>UserName</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<onv:ServiceRequestInput>
<correlationID>12345</correlationID>
<data><![CDATA[<SiebelMessage></SiebelMessage>]]></data>
</onv:ServiceRequestInput>
</soapenv:Body>
</soapenv:Envelope>
Kindly help me out. Thanks!
My webservice expect a ws security header to be added in the request SOAP XML send to external system. I am able to make a call through SOAP UI but not able to figure out how to write a class to perform same functionality. Below is my sample xml
<soapenv:Envelope xmlns:onv="https://www.xyz.com/services/ONVInterface.wsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<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>
<wsse:Username>UserName</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<onv:ServiceRequestInput>
<correlationID>12345</correlationID>
<data><![CDATA[<SiebelMessage></SiebelMessage>]]></data>
</onv:ServiceRequestInput>
</soapenv:Body>
</soapenv:Envelope>
Kindly help me out. Thanks!
kevin garcia 10
Hello Priya... did you find the solution?? I have the same problem :( ... Regards
Nuevo9763
Anyone find answer to Priya's question?