使用 xmlbeans 和 axis2 创建 soap 请求字符串
create soap request string with xmlbeans and axis2
我有一个 Web 服务客户端,它使用 axis2 1.6.1,xmlbeans。它工作正常。
现在,我想从请求对象创建一串 soap 请求消息(不仅是 xml 字符串,而且还是 soap 字符串)。
请帮忙。
(使用 jaxb 或 cxf 不是这个项目的选项)
好的,我解决了。拥有 xmlbean 对象后,只需在 soap 信封和 xmlObject.toXML().
之间进行字符串连接
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.qwest.com/XMLSchema" >
<soapenv:Header/>
<soapenv:Body>
+ xmlObject.toXML()
+ </soapenv:Body>
</soapenv:Envelope>
我有一个 Web 服务客户端,它使用 axis2 1.6.1,xmlbeans。它工作正常。 现在,我想从请求对象创建一串 soap 请求消息(不仅是 xml 字符串,而且还是 soap 字符串)。
请帮忙。
(使用 jaxb 或 cxf 不是这个项目的选项)
好的,我解决了。拥有 xmlbean 对象后,只需在 soap 信封和 xmlObject.toXML().
之间进行字符串连接<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.qwest.com/XMLSchema" >
<soapenv:Header/>
<soapenv:Body>
+ xmlObject.toXML()
+ </soapenv:Body>
</soapenv:Envelope>