SoapUI WS Security Icon

I want to make a call against a web service using WS-Security with SoapUI. SoapUI hasn't had any luck so far. I would like to consult.

+4
source share
1 answer

He returned and reviewed the SoapUI documentation and had no problem a second time. Not sure what I missed. I think I probably missed the timestamp required by the web service.

In SoapUI, I added an outbound WS-security configuration with a username, username, password, and I checked Must Understand.

WSS WSS. 10000 MS. , , Add Nonce Add Created. PasswordText. ( "" ) WSS , . (VB.NET) :

Dim client As New clientService
client.Url = getUrl()
Dim userToken As New UsernameToken(Username, Password, Tokens.PasswordOption.SendPlainText)
Dim requestContext As SoapContext = client.RequestSoapContext
requestContext.Security.Timestamp.TtlInSeconds = 60
requestContext.Security.Tokens.Add(userToken)
client.fooBar()

, .., . , SSL.

+5

Source: https://habr.com/ru/post/1540403/


All Articles