mule 怎样集成外部的webservice
发布时间:2020-12-17 00:06:43 所属栏目:安全 来源:网络整理
导读:?xml version="1.0" encoding="UTF-8"? mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:email="http://www.mulesoft.org/schema/mule/email"? xmlns:vm="http://www.mulesoft.org/
<?xml version="1.0" encoding="UTF-8"?> < mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:email="http://www.mulesoft.org/schema/mule/email"? xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc" xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd http://www.mulesoft.org/schema/mule/email http://www.mulesoft.org/schema/mule/email/current/mule-email.xsd http://www.mulesoft.org/schema/mule/jdbc http://www.mulesoft.org/schema/mule/jdbc/current/mule-jdbc.xsd http://www.mulesoft.org/schema/mule/stdio http://www.mulesoft.org/schema/mule/stdio/current/mule-stdio.xsd "> ??? <mulexml:object-to-xml-transformer name="Object_to_XML" doc:name="Object to XML"/> ??? <!-- 提供HTTP入口的数据更新服务? --> ??? <flow name="dataUpdateByHttpFlow" doc:name="dataUpdateByHttpFlow"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="demo" doc:name="HTTP" responseTransformer-refs="Object_to_XML"/>?????? <flow-ref name="GetDataFlow" doc:name="Flow Reference"/> ??? </flow> ??? <!-- 通过数据抽取服务获取数据? --> ??? <flow name="GetDataFlow" doc:name="GetDataFlow"> ??????? <set-payload value="mule" doc:name="Parameters"/> ??????? <http:outbound-endpoint? address="computerA" responseTimeout="100000" doc:name="HTTP endpoint"> <!-- 可以根据wsdl进行相应的配置 --> <cxf:jaxws-client operation="" clientClass="" port="" doc:name="SOAP"/> ??????? </http:outbound-endpoint> ?????? <byte-array-to-object-transformer doc:name="Byte Array to Object"/>? ??????? <vm:outbound-endpoint exchange-pattern="one-way" doc:name="VM" path="datas"/> ??? </flow> ??? <!-- 通过数据插入服务添加数据? --> ??? <flow name="insertData" doc:name="insertData"> ??????? <vm:inbound-endpoint exchange-pattern="one-way" path="datas" doc:name="VM"/> ??????? <custom-transformer class="yourTransformer" doc:name="Java"/> <!-- 可以根据wsdl进行相应的配置 --> ??????? <cxf:jaxws-client operation="" clientClass="" port="" doc:name="SOAP"/> ??????? <http:outbound-endpoint address="computerB" responseTimeout="100000" doc:name="HTTP endpoint"/> ??? </flow> < /mule> 给你提供一个通过mule集成得到数据更新服务的一个模板你可以参考着这个进行添写,至于里面的operation就是wsdl中的operation而clientClass对应的就是你生成的本地Service类
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- twitter-bootstrap – 附加LESS的Bootstrap glyphicon,没有
- Bash:捕获命令在后台运行的输出
- bash – 我可以将stdin直接重定向到文件吗?
- 这是什么意思“bash <<(curl http://rvm.io/releases/rvm
- Scala多态函数用于过滤输入列表的任一个
- unix – 使用“sort”命令按列优先级排序CSV文件
- 是否可以调用:在vim中使用make,而不显示shell
- 使用Scalaz.ListW.<^>键入推断问题
- Angular2 VS Angular4 深度对比:特性、性能
- twitter-bootstrap – 如何防止twitter引导崩溃顶部导航下拉