在JAX-RS中使用SOAP请求

时间:2017-04-16 05:59:47

标签: java web-services rest soap jax-rs

我正在尝试从HTTP请求中提取SOAP消息到REST端点。我使用的是JAX-RS而没有其他库。以下是我打算使用的样本肥皂请求

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:ns="http://example.com/ns">
   <soapenv:Header/>
   <soapenv:Body>
     <ns:request>
      <ns:customer>
       <ns:id>123</ns:id>
       <ns:name type="NCHZ">John Brown</ns:name>
      </ns:customer>
     </ns:request>
   </soapenv:Body>
</soapenv:Envelope>

你能建议我这样做吗。(我不允许使用任何SOAP引擎)

1 个答案:

答案 0 :(得分:0)

尝试查看此链接,但我不确定您是否限制不使用SOAP引擎 Working Soap client example