【发布时间】:2017-04-07 00:24:30
【问题描述】:
我刚开始使用 Mule 3.8 CE 版本。我的用例是喜欢这个,
发布 SOAP -- 从已发布的 SOAP 中点击任何方法 -- 接收数据 -- 传递此数据以使用 SOAP -- 获取响应 -- 通过 Java 处理响应 -- 将此作为来自已发布 SOAP 的方法的响应返回。
简而言之,我想从 Mule 引入一个中间件(不是代理),它将发布端点 (e1) -- 从该端点 (e1) 接收数据 -- 将此数据传递给另一个端点 (e2) -- 接收数据来自另一个端点。(e2) -- 将响应返回到原始端点 (e1)。
目前我正在使用以下 Mule 配置来实现这一点,
<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>
在“HellowWorldWSImpl”中,我有 Webmethod。我正在使用 SOAP 并在此 webmethod 中接收数据。我正在返回从 SOAP 消耗的数据作为对此 Webmethod 的响应。这是正确的方法还是有更好的方法来实现我的要求?
【问题讨论】:
标签: web-services soap mule mule-el