所访问机器不存在或所访问的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 FoundError 404--Not Found |
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.4.5 404 Not FoundThe 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. |