rg.apache.axis2.AxisFault:传输错误:403 错误:禁止

发布于 2024-09-28 07:34:59 字数 1037 浏览 11 评论 0原文

我正在尝试通过 https 访问 Web 服务,我有 ssl 证书。但是,当我发送 Web 服务请求时,我得到:

threw exceptionorg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
 at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
 at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
 at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
 at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

监听线路表明客户端正在尝试连接到服务器。 我对造成这种情况的原因感到困惑,任何帮助将不胜感激。

谢谢

I am trying to access a webservices over https, I have the ssl certificates in place. However when I send the webservice request I am getting:

threw exceptionorg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
 at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
 at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
 at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
 at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

Snooping on the wire show that the client is trying to connect to the server.
I am stumped as to what is causing this, any help would be much appreciated.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

独自←快乐 2024-10-05 07:34:59

尝试设置此属性,它应该有望解决问题:

options.setProperty(HTTPConstants.CHUNKED, "false");

-Jasdeep

Try setting this property and it should hopefully resolve the issue:

options.setProperty(HTTPConstants.CHUNKED, "false");

-Jasdeep

真心难拥有 2024-10-05 07:34:59

据我所知,这是由于网络错误造成的。客户端配置为仅执行单向 ssl。而服务器配置为双向 ssl。

As far as I can work out this was due to network errors. The client was configured to do one-way ssl only. Whereas the server was configured for two-way ssl.

猫卆 2024-10-05 07:34:59

如果 Web 服务位于 .NET 中并托管在 IIS 上,您可以尝试以下操作

Open IIS console > Right click on Default Web Service - Properties >Uncheck "Http Keep-Alives Enabled" 

if the webservice is in .NET and hosted on IIS , you can try the below

Open IIS console > Right click on Default Web Service - Properties >Uncheck "Http Keep-Alives Enabled" 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文