Java 在JAX-RS中使用SOAP请求

Java 在JAX-RS中使用SOAP请求,java,web-services,rest,soap,jax-rs,Java,Web Services,Rest,Soap,Jax Rs,我正在尝试从HTTP请求提取SOAP消息到REST端点,我使用的是JAX-RS,没有其他库。下面是我计划使用的soap请求示例 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://example.com/ns"> <soapenv:Header/> <soapenv:Body> <ns:reque

我正在尝试从HTTP请求提取SOAP消息到REST端点,我使用的是JAX-RS,没有其他库。下面是我计划使用的soap请求示例

<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>

123
约翰布朗

你能给我一个建议吗?(我不允许使用任何SOAP引擎)

尝试查看此链接,但我不确定你不使用SOAP引擎的限制