2013-02-11 87 views
0

我想公开骡子及其工作的WebService。在Mule上暴露WebService

  • 我的问题是,我不确定这是暴露Web服务的正确方法。
  • 正如我希望能够看到我的骡子HTTP入站端点WSDL即

XXX:8084/HelloService的WSDL

,请注意,实际服务端口8085运行

<flow name="WS_In" doc:name="WS_In"> 
    <http:inbound-endpoint address="http://localhost:8084/HelloService" exchange-pattern="request-response" doc:name="HTTP"> 
     <cxf:proxy-service wsdlLocation="http://localhost:8085/HelloService?WSDL" payload="envelope" namespace="http://example.org/HelloService" service="Hello"/> 
    </http:inbound-endpoint>   

    <http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="8085" doc:name="HTTP" path="test"/> 

</flow> 

回答

0

代理Web服务是一种非常普遍的做法,用于不同的原因,如安全或审计。这种模式允许对这种代理进行简单而简单的配置。

有了这个,你可以

  1. 变换SOAP信封(身体或头),以添加或删除特定条目。
  2. 重写远程WSDL,使它们似乎绑定到企业防火墙内的服务。

骡子以各种方式已经定义了这些代理变压器: 编号:https://docs.mulesoft.com/mule-user-guide/v/3.7/web-service-proxy-pattern#wsdl-redirection