java webservice返回xml解析异常问题!!!
各位好,我是菜鸟,问个异常:
org.xml.sax.SAXException: Deserializing parameter 'withSalesInfoQueryReturn': could not find deser
大致是通过webservice返回,其中返回参xml被webservice强制转义特殊字符,导致webservice自己都无法解析。
webservice报告的返回参:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<Esb>
<Route>
<Time>2015-03-13 10:42:13</Time>
<EsbId>9835710bd31a3952d7ba4cd7ecf11650</EsbId>
</Route>
</Esb>
</soapenv:Header>
<soapenv:Body>
<withSalesInfoQueryResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<withSalesInfoQueryReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><?xml version="1.0" encoding="UTF-8" ?><resWithSalesInfo><resultCode>1</resultCode><resultDesc>查询成功</resultDesc><salesList><item><servId>913032898269</servId><sceneId>1013</sceneId><despInfo>低0用户</despInfo><sugInfo>请注意手机流量使用</sugInfo><maintainInfo>null</maintainInfo><areaCode>0691</areaCode><accNbr>18988102006</accNbr></item></salesList></resWithSalesInfo></withSalesInfoQueryReturn>
</withSalesInfoQueryResponse>
</soapenv:Body>
</soapenv:Envelope>
可以看到 withSalesInfoQueryReturn 这里面的返回内容被转义了。
如果不用webserice调用服务接口,可以正确返回xml。
请问这种问题要怎么解决? 可以设置返回参?还是怎么滴,请各位大神提提建议