我想更改webservice响应的位置。我在myService_mapping.xml
中进行了以下更改但是,显示输出的顺序不在Response1, Response2, Response3
中
它位于Response2, Response3, Response1
<webservice-description>
<jaxrpc-mapping-file>WEB-INF/myService_mapping.xml</jaxrpc-mapping-file>
</webservice-description>
myService_mapping.xml的内容
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>com.src.eh.EHSResult</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:mppm="http://eh.actimize.com">mppm:realTimeWSProvider_3Response</wsdl-message>
<wsdl-message-part-name>Response1</wsdl-message-part-name>
<parameter-mode>OUT</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>1</param-position>
<param-type>com.src.eh.EHSResult</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:mppm="http://eh.actimize.com">mppm:realTimeWSProvider_3Response</wsdl-message>
<wsdl-message-part-name>Response2</wsdl-message-part-name>
<parameter-mode>OUT</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>2</param-position>
<param-type>com.src.eh.EHSResult</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:mppm="http://eh.actimize.com">mppm:realTimeWSProvider_3Response</wsdl-message>
<wsdl-message-part-name>Response3</wsdl-message-part-name>
<parameter-mode>OUT</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
答案 0 :(得分:0)
这是另一个(但同样的)问题,答案是, (Specify order of elements in a SOAP response using java ) 它应该对你有帮助。