簡體   English   中英

WSO2 ESB作為具有所有原始操作的純直通WSDL服務器

[英]WSO2 ESB as a Pure Pass-Through WSDL Server with All Original Operations

我是WSO2 EST領域的新手,因此我在下面的問題可能有些可悲,但我只是想盡快尋求幫助。

我有一個遠程Web服務的WSDL,但僅在SOAP 1.2中提供。 我的應用程序只能與SOAP 1.1 WSDL一起使用。 因此,我安裝了WSO2 ESB,添加了新的代理服務,即傳遞代理,並在“已部署的服務”列表頁面上,右鍵單擊新創建的服務行上的WSDL 1.1,並使用“另存為”保存WSDL 1.1版本。 但是,此WSDL中唯一可用的操作是“中級”,僅此而已。

我要做的只是能夠在原始WSDL上提供所有可用操作,而無需進行任何更改。 我想使用WSO2 ESB服務的WSDL(1.1)進行的相同操作,該服務使用SOAP 1.2與遠程Web服務進行通信。

提前致謝。

您需要指定“發布WSDL”選項並相應地創建WSDL。 如果未指定“發布WSDL”選項,它將僅顯示中介操作。

閱讀以下文檔以了解更多信息。

http://docs.wso2.org/wiki/display/ESB470/Adding+a+Proxy+Service#AddingaProxyService-PublishWSDLOptions

http://maharachchi.blogspot.com/2013/07/publishwsdl-option-in-wso2-esb-explained.html


編輯-您可以在代理配置的端點中將格式屬性指定為SOAP 1.2,以將所有請求轉換為SOAP 1.2。 樣本代理配置如下

<proxy xmlns="http://ws.apache.org/ns/synapse" name="EchoProxy" transports="https,http" statistics="disable" trace="disable"
   startOnLoad="true">
<target>
  <outSequence>
     <send/>
  </outSequence>
  <endpoint>
     <address uri="http://localhost:8280/services/echo" format="soap12"/>
  </endpoint>
</target>
<publishWSDL uri="http://localhost:8282/services/echo?wsdl"/>
<description/>
</proxy>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM