1

hi i have a flow in mule like this

<flow name="MuleService">
    <vm:inbound-endpoint path="ms" exchange-pattern="request-response" />
            <!-- I have a Payload here want to conver it to what my service want -->
            <logger message="Received message #[payload]" level="INFO" />
<!--    <cxf:jaxws-client    HERE !!! i need to call a SOAP service-->

             <!-- here i need to return service respond to jvm now i just return string      -->
    <script:transformer>
        <script:script engine="groovy">return 'this is mule'</script:script>
    </script:transformer>
</flow>

i want to send message from vm to mule then call a soap service and return response to vm so i can change my service implementation and its proxies without having to change my client! how can i do that ? i think process involves discovering service proxies and transfrom my message to proxy type and then getting response and return it to jvm.

4

1 回答 1

2

实现这一点的最简单方法是使用WS 代理模式

这将允许您使用所需的端点(即 vm 作为入站,http 作为出站)应用适当的转换并相对独立于代理的 Web 服务

于 2012-11-05T11:37:44.787 回答