使用Axis2编辑SOAP响应标记

时间:2014-10-07 13:39:42

标签: java web-services soap axis2

我正在使用Axis2编写Java Web服务,这是我的SOAP响应:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
     <soapenv:Body>
        <ns:MyMethodResponse xmlns:ns="http://mynamespace">
            <ns:return>
               ...
            </ns:return>
        </ns:MyMethodResponse>
     </soapenv:Body>
</soapenv:Envelope>

如何编辑此回复?

由于向旧客户端的向后兼容性,我需要将标签“ns:return”更改为“MyMethodResult”和“soapenv”前缀为“soap”。我不能使用JAX-WS注释。感谢名单

0 个答案:

没有答案