Passing credentials in SOAP Message Header
Hi
We have secured a web service with basic uname/pwd authentication using OWSM in EM Console. Testing is fine and even when we test through SOAP UI, it works fine when we provide username and password in the properties section.
I am looking for the exact soap header code where we pass uname/pwd credentials in the request.
We tried this:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AUTHHEADER xmlns="http://tempuri.org/">
<USERNAME>string</USERNAME>
<PASSWORD>string</PASSWORD>
</AUTHHEADER>
</soap:Header>
<soap:Body>
<SENSITIVEDATA xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
and this:
<wsse:UsernameToken>
<wsse:Username>scott</wsse:Username>
<wsse:Password Type="wsse:PasswordText">password</wsse:Password>
</wsse:UsernameToken>
<wsse:UsernameToken>
<wsse:Username>scott</wsse:Username>
<wsse:Password Type="wsse:PasswordDigest">
KE6QugOpkPyT3Eo0SEgT30W4Keg=</wsse:Password>
<wsse:Nonce>5uW4ABku/m6/S5rnE+L7vg==</wsse:Nonce>
<wsu:Created xmlns:wsu=
"http://schemas.xmlsoap.org/ws/2002/07/utility">
2002-08-19T00:44:02Z
</wsu:Created>
</wsse:UsernameToken>
but nothing worked.
Our XML request is:
*<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">*
*<soap:Body xmlns:ns1="http://xmlns.oracle.com/TRW_jws/WeatherService/WeatherService">*
*<ns1:process>*
*<ns1:input>new delhi</ns1:input>*
*</ns1:process>*
*</soap:Body>*
*</soap:Envelope>*
Where shall we put uname/pwd here??
Pls advice
Regards
Dev