调用java的webservice forbidden_webservice 调用错误小结

所访问机器不存在或所访问的webservice 的IP不正确 [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.UnknownHostException: testServerIp; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.UnknownHostException: testServerIp] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354) at org.apache.soap.rpc.Call.invoke(Call.java:248) 所访问的webservice 的端口不正确 [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.ConnectException: Connection refused: connect; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.ConnectException: Connection refused: connect] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354) at org.apache.soap.rpc.Call.invoke(Call.java:248) 所访问的webservice 的地址不正确 [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:

Error 404--Not Found

Error 404--Not Found

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

10.4.5 404 Not Found

The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) webservice不存在或可能是网络不通 [SOAPException: faultCode=ns1:Server.NoService; msg=The AXIS engine could not find a target service to invoke! targetService is simplewebservicetest webservice的服务提供者内部异常,比如webservice调用方传的参数为null而提供者未对参数进行检查而直接使用 AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值