Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where can I see the security header which soapUI adds to my request

Tags:

soapui

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!

like image 994
Tania Marinova Avatar asked Apr 11 '13 12:04

Tania Marinova


People also ask

How do you add a security header in SoapUI?

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.

How do I see SoapUI requests?

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.

How do I add a security certificate in SoapUI?

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.


1 Answers

You can view WS-Security header block in the Raw section, but before going there make some changes and resend request.enter image description here

like image 123
Uladzimir Avatar answered Sep 21 '22 23:09

Uladzimir