gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 04:53:53 24 4
gpt4 key购买 nike

我们已经在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com