Mule WSDL 连接器
Mule WSDL Connector
我使用的是 3.8 (3.8.3) 版本。
我基本上想在除 http://{serviceurl}?wsdl 之外的其他位置托管我的 wsdl,例如 http://{serviceurl}/my-great-service.wsdl
在以下 mule doc
https://docs.mulesoft.com/mule-user-guide/v/3.8/wsdl-connectors
它说 you can specify the _wsdlLocation_ property of the CXF endpoint as follows
<endpoint address="wsdl-cxf:http://localhost:8080/book/services/BookService?method=getBooks">
<properties>
<property name="wsdlLocation" value="file:///c:/BookService.wsdl"/>
</properties>
</endpoint>
但是把它放在 mule 的什么地方 xml?
到文件的根目录 <mule> here </mule>
或 <flow> here </flow>
或 <cxf:proxy-service> here </cxf:proxy-service>
mule 文档非常有限且示例锁定。
您使用 cxf 连接器而不是 Web 服务使用者的原因是什么?
https://docs.mulesoft.com/mule-user-guide/v/3.8/web-service-consumer
所有全局配置元素都在 <mule>
标记之后和 <flow>
元素之前指定。
下面的 Web 服务消费者示例:
<mule ......>
<ws:consumer-config name="Web_Service_Consumer" service="ServiceService"
port="ServicePort" serviceAddress="addresUrl"
wsdlLocation="wsdl location" doc:name="Web Service Consumer"/>
<flow>...</flow>
</mule>
如果出于任何原因你想使用 cxf 连接器,是一样的,但使用 cxf 连接器
我使用的是 3.8 (3.8.3) 版本。 我基本上想在除 http://{serviceurl}?wsdl 之外的其他位置托管我的 wsdl,例如 http://{serviceurl}/my-great-service.wsdl
在以下 mule doc https://docs.mulesoft.com/mule-user-guide/v/3.8/wsdl-connectors
它说 you can specify the _wsdlLocation_ property of the CXF endpoint as follows
<endpoint address="wsdl-cxf:http://localhost:8080/book/services/BookService?method=getBooks">
<properties>
<property name="wsdlLocation" value="file:///c:/BookService.wsdl"/>
</properties>
</endpoint>
但是把它放在 mule 的什么地方 xml?
到文件的根目录 <mule> here </mule>
或 <flow> here </flow>
或 <cxf:proxy-service> here </cxf:proxy-service>
mule 文档非常有限且示例锁定。
您使用 cxf 连接器而不是 Web 服务使用者的原因是什么?
https://docs.mulesoft.com/mule-user-guide/v/3.8/web-service-consumer
所有全局配置元素都在 <mule>
标记之后和 <flow>
元素之前指定。
下面的 Web 服务消费者示例:
<mule ......>
<ws:consumer-config name="Web_Service_Consumer" service="ServiceService"
port="ServicePort" serviceAddress="addresUrl"
wsdlLocation="wsdl location" doc:name="Web Service Consumer"/>
<flow>...</flow>
</mule>
如果出于任何原因你想使用 cxf 连接器,是一样的,但使用 cxf 连接器