Note that there are some explanatory texts on larger screens.

plurals
  1. POediting response in mule flow before it gets sent back to the request-response endpoint
    primarykey
    data
    text
    <p>I'm kinda new to mule esb, and I can't resolve one trouble I got. Here is what happens: I have a flow in mule 3.2.0, which receives object with request to a ws. I send it to ws with cxf:jaxws-client and. At the beginning of this flow I have vm:inbound endpoint with request-response pattern. What I want is to apply transformation to the object returned as response from the "vmIn endpoint" before it gets send back to the caller from the "vm.logService endpoint" of the flow. I actually get the response, but it's null payload. The "vm.logService" is the endpoint to witch I send MuleMessage from the Java code with MuleClient.send(url, message, properties).I've read that this should be done with the "response" block, but it seems that this is not happening.</p> <p>Here is my configuration</p> <pre><code>&lt;vm:endpoint name="vmOut" path="vmOut" exchange-pattern="request-response"/&gt; &lt;vm:endpoint name="vmIn" path="vmIn" exchange-pattern="request-response"/&gt; &lt;pattern:web-service-proxy name="name" inboundEndpoint-ref="vmIn" transformer-refs="logging" responseTransformer-refs="logging" outboundEndpoint-ref="vmOut" /&gt; &lt;flow name="logService"&gt; &lt;vm:inbound-endpoint path="vm.logService"/&gt; &lt;vm:outbound-endpoint ref="vmIn"&gt; &lt;cxf:jaxws-client serviceClass="my.WSClass" operation="operation" enableMuleSoapHeaders="false"/&gt; &lt;object-to-string-transformer/&gt; &lt;/vm:outbound-endpoint&gt; &lt;response&gt; &lt;custom transformer name="myTransformer" class="someclass" /&gt; &lt;/response&gt; &lt;flow name="genericTransformer"&gt; &lt;vm:inbound-endpoint path="vmOut"/&gt; &lt;custom-transformer class="mypkg.GenericServiceTransformer"&gt; &lt;/custom-transformer&gt; &lt;/flow&gt; &lt;flow name="import"&gt; &lt;vm:inbound-endpoint path="vm.import" exchange-pattern="request-response"/&gt; &lt;http:outbound-endpoint address="${Service}" responseTimeout="${ws.timeout}" exchange-pattern="request-response" /&gt; &lt;object-to-string-transformer/&gt; &lt;/flow&gt; </code></pre> <p>Well, after sending with jaxws-client I have few more flows where this request message is processed, but I don't think that this is the reason why it's not working. Thanks in advance for any help</p>
    singulars
    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.
 

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