xpath解析带命名空间的xml(解析soap返回消息)
- 2018-03-13 15:53:00
- 1147533288 原创
- 6484
Node node = xpath.selectSingleNode(doc);
返回文本消息参考:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tar="http://www.jhlss.gov.cn/esb/TargetService">
<soapenv:Header/>
<soapenv:Body>
<tar:executeResponse>
<tar:routeId>?</tar:routeId>
<tar:header>
<tar:callerId>?</tar:callerId>
<tar:userId>?</tar:userId>
</tar:header>
<tar:body>
<!--Optional:-->
<tar:record>123123</tar:record>
<!--Zero or more repetitions:-->
<tar:records>
<tar:type>?</tar:type>
<!--Zero or more repetitions:-->
<tar:record>?</tar:record>
</tar:records>
</tar:body>
<tar:signData>?</tar:signData>
</tar:executeResponse>
</soapenv:Body>
</soapenv:Envelope>
| 联系人: | meepo |
|---|---|
| 电话: | ***** |
| Email: | 1147533288@qq.com |
| QQ: | 1147533288 |