I have created an axis 2 web service with ws - security (which is enabled by the rampart module).
I want to test it in soapUi 4.5.1. and the request which soapUI proposes me is as it follows
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nlo="http://nlo">
<soapenv:Header/>
<soapenv:Body>
<nlo:echo>
<nlo:arg>echoo</nlo:arg>
</nlo:echo>
</soapenv:Body>
</soapenv:Envelope>
But of course when I test it this way it gives me: missing security header
So I click on Show Project View - click on Outgoing WS-Security Configuration; Then I add WS Security Entry - UserName and I type the username, password and for PasswordType, I choose PasswordText
.
Then I go back again to my request - it the same as the previous which soapUI proposed me but this time I click on the AUT section and for Outgoing WSS I choose my configuration. And everything works. But I can't see the security header which SoapUI has added. (neither in XML section not in RAW section).
Thanks in advance for the help!
Right-click anywhere in the main request window to open a menu. Select Outgoing WSS >> Apply "OLSA Username Token". This will add the security header information to the Soap envelope request.
SOAP messages are transported by HTTP protocol. To view the HTTP request, click RAW at SoapUI Request window (left side). The Request is posted to the web-server. Hence, the POST method of Http is used.
In SoapUI, click Preferences on the main toolbar or select File > Preferences and switch to the SSL Preferences page. If you want the client to provide its certificate, enable the Client Authentication option.
You can view WS-Security header block in the Raw section, but before going there make some changes and resend request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With