我正在使用 SOAP UI 来测试网络服务。在身份验证选项卡中,我输入了用户名和密码以及域名。
Sample:
WSDL URL: http://localhost:8080/soap/helloTest?wsdl
Username:hello
pass:helloworld
domain: http://mysysfullname:8080
我已经提供了正确的凭据。我还将域替换为 http://localhost:8080
。
即便如此,我也只会收到无效的凭据。用户名和密码正确,它们不是我的 Windows 凭据。
有人可以帮助如何提供凭据。
Adding Raw Request
POST http://localhost:8080/soap/helloTest HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:8080
Content-Length: 1004
谢谢。
最佳答案
它还取决于WSS-PasswordType
也验证一下。
关于java - 测试 Web 服务时在 SOAP UI 中进行身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14377550/