我們已經在Weblogic 10.3上實現了Web服務。使用SOAP UI測試Weblogic Web服務
我想使用SOAP UI客戶端(soapui.org)測試webservices。
,但我得到以下錯誤消息:
Error 401--Unauthorized
Error 401--Unauthorized
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.2 401 UnauthorizedThe 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的意見之後,我做了基本的認證,即設置的用戶名和pwd(的WebLogic/weblogic的)到標題SOAP請求(在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>
我的確輸入了默認的用戶名和密碼(weblogic/weblogic),但現在我收到以下錯誤消息: – rohit 2010-10-23 04:51:45
可否請您更新上述錯誤的問題,這不是 – zengr 2010-10-23 04:54:11