<!--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.csdn.net/topics/370135708
本文详细介绍了如何解决AxisFault错误,包括检查WSDL地址是否正确配置,解析XML时遇到的错误定位及解决方法。通过实例分析,提供了解决XML解析问题的有效步骤。
307

被折叠的 条评论
为什么被折叠?



