java - 测试 Web 服务时在 SOAP UI 中进行身份验证

标签 java web-services soap soapui

我正在使用 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/

相关文章:

c# - 通过 SOAP 发送二进制流

java - 为什么 TestExecutionListener 中的 beforeTestClass 和 afterTestClass 方法中 TestContext.getInstance() 为 null?

iphone - 如何在不同的iPhone上检测同一用户?

android - 如何通过android中的ksoap SoapObject检索来自webservice的复杂类型对象

c# - basicHttpBinding 和 webHttpBinding 在一起

asp.net - Web 服务中的错误处理

java - 转移到maven后,我编译的jar文件无法运行

java - 堆叠 ASM 访问者的正确方法是什么?

java - 使用 Ajax 调用将 Cordova 9 移动应用程序连接到 Java Web 服务

c# - Exchange Web 服务 - 使用资源创建约会但与会者看不到资源