faultString: (405)Method Not Allowed faultDetail: {}:return code: 405 call.setTargetEndpointAddress("http://ws.webxml.com.cn/WebServices/WeatherWebService.asmx"); //路径要写对
1 2 3 4 5 6 7 8 9 10 11
关于invoke传参res=(String[]) call.invoke(new Object[]{"4544"}); faultString: 404 faultString: 400 bad request faultString: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultString: (403)Forbidden 您未被授权查看该页 您试图访问的 Web 服务器上有一个不被允许访问该网站的 IP 地址列表,并且您用来浏览的计算机的 IP 地址也在其中。 HTTP 错误 403.6 - 禁止访问:客户端的 IP 地址被拒绝。 打开浏览器:直接输网址,同样打不开,被禁了 - No returnType was specified to the Call object! You must call setReturnType() if you have called addParameter(). call.setReturnType(org.apache.axis.encoding.XMLType.XSD_UNSIGNEDBYTE);
1 2 3 4
- Exception: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. (应该与下方错误 原因一样) faultString: org.xml.sax.SAXException: Found character data inside an array element while deserializing