WSO2 ESB 改变了 wsdl [英] WSO2 ESB alters the wsdl

查看:24
本文介绍了WSO2 ESB 改变了 wsdl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个后端服务,我在 WSO2 ESB 中配置为代理服务.

I have a backend service which I configure as a proxy service in WSO2 ESB.

ESB 公开的 wsdl 略有不同,这也是有效的并且按预期工作.

The ESB exposes slightly different wsdl, which is also valid and works as expected.

问题是我不能将旧存根与 ESB wsdl 一起使用,因为结构发生了变化.我想以这样一种方式创建服务,即来自 ESB 的 wsdl 与我的端点服务完全相同.

The problem is I can't use my old stubs with the ESB wsdl because of the changed structure. I want to create the service in such a way that the wsdl from ESB is EXACTLY the same as my endpoint service.

这种方法是否可行,或者我是否需要再次生成存根(在我的情况下这需要付出很多努力)?

Is such approch poissible or do I need to generate again the stubs (this would require a lot of effort in my case)?

endpoint 和 esb wsdl 之间 WSDL 的区别1.例如我的端点有以下标签

The difference in the WSDL between endpoint and esb wsdl 1. For example my endpoint has following tags

<xs:element name=", - Endpoint
<xsd:element name=  - ESB

2.另一个区别是:

<wsdl:service name="CasesServiceService"> - Endpoint
<wsdl:service name="CasesService"> - ESB

3.端口名称:

<wsdl:port name="CasesServiceHttpSoap11Endpoint" binding="tns:CasesServiceSoap11Binding">
<wsdl:port binding="tns:CasesServiceServiceSoapBinding" name="CasesServicePort">

推荐答案

为了使 WSO2 ESB 使用完全相同的服务/端口名称保持相同的 WSDL 合同,您可以直接为您的代理服务编辑 Apache Synapse 配置文件.只需点击WSO2 ESB界面中的Source View",将以下参数添加到<proxy>节点:

In order to make WSO2 ESB keep the same WSDL contract with the exact same services / ports names, you can edit the Apache Synapse configuration file for your proxy service directly. Just click on "Source View" in the WSO2 ESB interface and add the following parameters to the <proxy> node:

<parameter name="useOriginalwsdl">true</parameter>
<parameter name="modifyUserWSDLPortAddress">true</parameter>

这将使它使用原始的 WSDL 并仅修改端口地址使其指向总线.

This will make it use the original WSDL and modify only the port address so it points to the bus.

相关文档在这里.

这篇关于WSO2 ESB 改变了 wsdl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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