简体   繁体   中英

Mule ESB — Introduce a Middleware to Publish and Consume SOAP

I just have started using Mule 3.8 CE version. My use case is to like this,

Publish SOAP -- Hit any method from Published SOAP -- Receive data -- Pass this Data to consume SOAP -- Fetch Response -- Process response via Java -- Return this as response from Method of Published SOAP.

In short I want to introduce a middleware (not a proxy) from Mule which will publish endpoint (e1) -- receive data from that endpoint (e1) -- pass this data to another endpoint(e2) -- receive data from this another endpoint.(e2) -- return response to original endpoint (e1).

我的骡流

Currently I am using following Mule configuration to achieve this,

 <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8085" doc:name="HTTP Listener Configuration"/>
<endpoint exchange-pattern="request-response" address="http://192.168.2.3:9080/crestelBEExport/billexport/CrestelBEExportService/CrestelBEExport" name="Generic" doc:name="Generic"/>
<flow name="webserviceproducerFlow">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/hello" doc:name="HTTP"/>
    <cxf:jaxws-service serviceClass="com.poc.example.ws.IHelloWorld" doc:name ="CXF" />
    <component class="com.poc.example.ws.HelloWorldWSImpl" doc:name="Java"/>
</flow>

In the 'HellowWorldWSImpl" I have Webmethod. I am consuming SOAP and receive data in this webmethod. I am returning this data consumed from SOAP as response to this Webmethod. Is this right approach or is there any better way to achieve my requirement?

You can use WS Consumer for calling the WS. No need in writing java code. This will be more "mule" way.

使用Mule 3.8企业版,您有一个功能,它将帮助您在开头指定WSDL这将创建类似于RAML 示例WSDL的结构

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM