WSO2 ESB 作为具有所有原始操作的纯直通 WSDL 服务器 [英] WSO2 ESB as a Pure Pass-Through WSDL Server with All Original Operations

查看:29
本文介绍了WSO2 ESB 作为具有所有原始操作的纯直通 WSDL 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 WSO2 EST 世界的新手,所以我下面的问题可能有点可悲,但我只是想尽快寻求帮助.

I am a newbie in the world of WSO2 EST so my question below could be somewhat pathetic but I just wanted to ask to get help asap.

我有一个远程 Web 服务的 WSDL,但它仅在 SOAP 1.2 中提供.我的应用程序只能使用 SOAP 1.1 WSDL.于是我安装了WSO2 ESB,添加了新的代理服务,即pass-through proxy,在deployed services"列表页面,在新创建的服务行右键WSDL 1.1,使用save as"保存WSDL 1.1版本.但是,此 WSDL 中唯一可用的操作是中介",仅此而已.

I have a WSDL of a remote web service but it is only presented in SOAP 1.2. My application can only work with SOAP 1.1 WSDL's. So I installed WSO2 ESB, added new proxy service, namely pass-through proxy, and on the "deployed services" list page, I right-clicked WSDL 1.1 on the newly created service row and used "save as" to save WSDL 1.1 version. However, the only operation available in this WSDL is "mediate" and that's all.

我想要做的只是能够在不更改任何内容的情况下在原始 WSDL 上使用所有操作.我想使用 WSO2 ESB 提供的 WSDL (1.1) 使用相同的操作,该服务使用 SOAP 1.2 与远程 Web 服务进行通信.

What I want to do is just to be able to have all operations available on the original WSDL without altering anything. I want to consume the same operations using the WSDL (1.1) served by WSO2 ESB that communicates with the remote web service using SOAP 1.2.

提前致谢.

推荐答案

您需要指定发布 WSDL"选项并相应地创建 WSDL.如果未指定发布 WSDL 选项,它将仅显示中介操作.

You need to specify 'Publish WSDL' options and create the WSDL accordingly. If Publish WSDL options are not specified it will show only the mediate operation.

阅读以下文档以了解更多相关信息.

Read the following docs to know more about this.

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.示例代理配置如下

EDIT - You can specify the format attribute as SOAP 1.2 in the endpoint in your proxy configuration to convert all requests to SOAP 1.2. Sample Proxy config is as follows

<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>

这篇关于WSO2 ESB 作为具有所有原始操作的纯直通 WSDL 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆