如何解析来自Web服务的soap响应以使用java获取节点的值

时间:2013-07-15 19:58:56

标签: java xml web-services soap

我从网络服务获得了肥皂回复。我需要解析以获取节点内的值。请提供一些代码来解析soap响应。

<?xml version="1.0" encoding="UTF-8"?>
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
   <SOAP-ENV:Body>
   <ns3:Response xmlns:ns3="http://www.example.org/Response" userid="100">
  <name date="23-10-2013">Sample</name>
 <name date="02-09-2013">Hello</name>
  </ns3:Response>
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

0 个答案:

没有答案
相关问题