Note that there are some explanatory texts on larger screens.

plurals
  1. POMule 3.2 flow and cxf:jaxws-service
    primarykey
    data
    text
    <p>I am relatively new to mule and trying to define a mule flow which takes request XML via soap-based Web service. The XML is based on a complex schema and I have generated classes using WSDL2Java </p> <p>After receiving the request cxf:jaxws-service executes the method submitOrder(SubmitOrderRequest parameters). After this method's execution I would like to transform the request XML to a little bit different format. Then this XML needs to be forwarded to another web service. The problem is that the mule message that comes out of ServiceImpl contains SubmitOrderResponse whereas I still want to work on SubmitOrderRequest.</p> <pre><code>&lt;flow name="testService"&gt; &lt;http:inbound-endpoint address="http://localhost:62005/test" exchange-pattern="request-response"&gt; &lt;cxf:jaxws-service serviceClass="com.test.ServicePortType" /&gt; &lt;/http:inbound-endpoint&gt; &lt;component class="com.test.ServiceImpl" /&gt; &lt;!-- transformer ref="MVIRequestTransformer" / --&gt; &lt;!-- xm:object-to-xml-transformer / --&gt; &lt;!-- logger message="XML payload is #[payload]" level="INFO" / --&gt; &lt;!-- SEND TRASNFORMED MESSAGE TO ANOTHER SERVICE --&gt; &lt;/flow&gt; @WebService(endpointInterface = "com.pennmutual.services.mvi.MVIServicePort") public class ServiceImpl implements ServicePortType { ... @Override public SubmitOrderResponse submitOrder(SubmitOrderRequest parameters) { ... } ... } </code></pre> <p>What are my options are. I can think of the following – 1. Put the request object somewhere in the context and retreive it later on for processing. 2. Change the return type of submitOrder to Object and return SubmitOrderRequest instead of SubmitOrderResponse.</p> <p>Please suggest the best possible way to handle this situation. I am using mule 3.2.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload