<!--StartFragment -->
<!--StartFragment -->
1.wsdl的地址没写对。
String endpoint = " http://localhost:8080/wsoap/services/EchoServiceName?wsdl"; XXX
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Bad envelope tag: definitions
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad envelope tag: definiti
错误解决:
1.wsdl的地址没写对。
String endpoint = " http://localhost:8080/wsoap/services/EchoServiceName?wsdl"; XXX
String endpoint =
http://localhost:8080/wsoap/services/EchoServiceName; yes
2. 解析xml的时候出错了
把返回的xml打印出来,
看看definitions标签。
把返回的xml打印出来,
看看definitions标签。
3.参考:http://bbs.youkuaiyun.com/topics/370135708