如何在Java中修改SOAP请求和响应?

时间:2011-12-22 02:10:45

标签: java soap tags request

我有肥皂要求。我正在使用Java代码来创建Web服务。

import javax.jws.soap.SOAPBinding.Use;<br>
import javax.jws.WebMethod;<br>
import javax.jws.WebService;<br>
import javax.jws.soap.SOAPBinding;<br>
import javax.jws.soap.SOAPBinding.Style;<br>

< soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/s ap/envelope/" xmlns:demo="http://impl.timecapsule.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <impl:registerUser> <br>
         < argo>username Here /argo> <br>
         < arg1>Password Here /arg1> <br>
         < arg2>EMail@gmail.com /arg2> <br>

      < /impl:registerUser><br>
    < /soapenv:Body><br>
< /soapenv:Envelope><br>

在上面的soap请求中,我想更改请求标记< arg0>< arg1><arg2> ....而不是我需要的{{1} },<username>
<password>标签。

任何人都可以帮我解决java代码,以用户定义的xml标签来发送soap请求。

0 个答案:

没有答案
相关问题