web-services - 使用 SOAP UI 测试 Weblogic Web 服务

标签 web-services weblogic-10.x

我们已经在 Weblogic 10.3 上实现了网络服务。

我正在尝试使用 SOAP UI 客户端 (soapui.org) 测试网络服务。

但我收到以下错误消息:

Error 401--Unauthorized

Error 401--Unauthorized

From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.4.2 401 Unauthorized

The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.



知道我是否需要对 SOAP UI 进行特殊配置。

更新:
在遵循 Zeger 的建议后,我进行了基本身份验证,即将用户名和密码(weblogic/weblogic)设置为 SOAP 请求的 header (在 SOAP UI 中)。但是现在我收到以下错误:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <faultcode>wsse:InvalidSecurity</faultcode> <faultstring>Error codes: 1061 2661 1028 Error code:1061</faultstring> </env:Fault> </env:Body> </env:Envelope> 

最佳答案

可能为时已晚,无法帮助解决原始问题,但这可能会帮助那些与我使用相同的 Google 搜索来到这里的人:)
看看http://download.oracle.com/docs/cd/E12840_01/wls/docs103/security/thin_client.html#understanding_basic_atn .
默认情况下,当 Weblogic 收到带有“Authorization=Basic ...” header 的 HTTP 请求时,它会检查提供的凭据。由于您几乎肯定没有为 Weblogic 配置任何安全领域或用户,因此您将得到 401 返回。

关于web-services - 使用 SOAP UI 测试 Weblogic Web 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4002497/

相关文章:

asp.net-mvc - WCF客户端实例化

web-services - 动态 GP Web 服务 : Limited?

java - Weblogic 10.3.6 应用程序在激活更改后自动启动

Eclipse JSF 内容辅助不起作用

grails - 默认 Grails '/' Controller 映射无法正确解析

java - 网络服务 : update on svn commit

java - 连接到 URL

asp.net - 打开 Windows 身份验证时使用 ajax 调用 Web 服务?

hibernate - 设置查询超时抛出 ORA-12592 : TNS:bad packet

maven - Weblogic fastswap webinf/lib 模块