日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

mule 怎样集成外部的webservice

發(fā)布時(shí)間:2024/9/27 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mule 怎样集成外部的webservice 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
<?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入口的數(shù)據(jù)更新服務(wù)? -->
??? <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>
??? <!-- 通過(guò)數(shù)據(jù)抽取服務(wù)獲取數(shù)據(jù)? -->
??? <flow name="GetDataFlow" doc:name="GetDataFlow">
??????? <set-payload value="mule" doc:name="Parameters"/>
??????? <http:outbound-endpoint? address="computerA" responseTimeout="100000" doc:name="HTTP endpoint">
<!-- 可以根據(jù)wsdl進(jìn)行相應(yīng)的配置 -->
<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>
??? <!-- 通過(guò)數(shù)據(jù)插入服務(wù)添加數(shù)據(jù)? -->
??? <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"/>
<!-- 可以根據(jù)wsdl進(jìn)行相應(yīng)的配置 -->
??????? <cxf:jaxws-client operation="" clientClass="" port="" doc:name="SOAP"/>
??????? <http:outbound-endpoint address="computerB" responseTimeout="100000" doc:name="HTTP endpoint"/>
??? </flow>
< /mule>
給你提供一個(gè)通過(guò)mule集成得到數(shù)據(jù)更新服務(wù)的一個(gè)模板你可以參考著這個(gè)進(jìn)行添寫(xiě),至于里面的operation就是wsdl中的operation而clientClass對(duì)應(yīng)的就是你生成的本地Service類(lèi)

總結(jié)

以上是生活随笔為你收集整理的mule 怎样集成外部的webservice的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。