我也碰上了"p"的问题: [Fatal Error] :61:17: The element type "p" must be terminated by the matching en
d-tag " </p>".
WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: The
element type "p" must be terminated by the matching end-tag " </p>".: org.xml.sa
x.SAXParseException: The element type "p" must be terminated by the matching end
-tag " </p>".
----------------------------------------------------------------------------------
以下是我发送的xml数据
<?xml version="1.0" encoding="UTF-8"?>
<certificate certDataID="odp_2_19371" cnName="药品经营&#
20225;业(批发)" operateID="1"> <GSP证书编号> </GSP证书编号> <企业
负责人> </企业负责人> <法定代表人> </法定代表人> <GSP证书有效期至>2009-04-07 </GSP证
书有效期至> <发证机关> </发证机关> <发证日期>-- </发证日期> <GSP认证日期>2009-04-07 </
GSP认证日期> <备注>100044-63713909 </备注> <仓库地址> </仓库地址> <经营范围>*** </经营
范围> <许可期限至>-- </许可期限至> <注册地址> </注册地址> <企业名称> </企业名称> <许可
证号> </许可证号> <质量负责人> </质量负责人> <经营方式>批发 </经营方式> </
certificate>
d-tag " </p>".
WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: The
element type "p" must be terminated by the matching end-tag " </p>".: org.xml.sa
x.SAXParseException: The element type "p" must be terminated by the matching end
-tag " </p>".
----------------------------------------------------------------------------------
以下是我发送的xml数据
<?xml version="1.0" encoding="UTF-8"?>
<certificate certDataID="odp_2_19371" cnName="药品经营&#
20225;业(批发)" operateID="1"> <GSP证书编号> </GSP证书编号> <企业
负责人> </企业负责人> <法定代表人> </法定代表人> <GSP证书有效期至>2009-04-07 </GSP证
书有效期至> <发证机关> </发证机关> <发证日期>-- </发证日期> <GSP认证日期>2009-04-07 </
GSP认证日期> <备注>100044-63713909 </备注> <仓库地址> </仓库地址> <经营范围>*** </经营
范围> <许可期限至>-- </许可期限至> <注册地址> </注册地址> <企业名称> </企业名称> <许可
证号> </许可证号> <质量负责人> </质量负责人> <经营方式>批发 </经营方式> </
certificate>
应该是接口路径有问题吧。
开始我是写成了:Client client = new Client(new URL("http://172.26.14.85:4321/ZBjda_MD0U/Service.asmx"));
应该写成这样才对吧:Client client = new Client(new URL("http://172.26.14.85:4321/ZBjda_MD0U/Service.asmx?WSDL"));
大家注意一下这个问题喽,犯这种错误很窝火的。