【发布时间】:2020-03-24 16:22:09
【问题描述】:
我想使用 JAVA 检索 XML 响应(SOAP Web 服务)。 客户端将以 XML 格式发送请求,java 代码应该能够接收 XML 格式的响应。
一个XML的例子如下:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="WebService">
<soapenv:Header/>
<soapenv:Body>
<web:SystemStatus soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<order xsi:type="xsd:int">?</order>
</web:SystemStatus>
</soapenv:Body>
</soapenv:Envelope>
您能否建议使用 java 实现的步骤?
【问题讨论】:
标签: java xml web-services soap