gpt4 book ai didi

wsdl - WSO2 更改了 wsdl 文件

转载 作者:行者123 更新时间:2023-12-03 07:29:22 30 4
gpt4 key购买 nike

我的服务是从一个 wsdl 文件中选取的。但是发布的服务 wso2 是 chenged。如果我希望 wso2 像我的 wsdl 文件一样发布。如何设置?例如,我的 wsdl 文件是:

<wsdl:service name="CoshipServiceImplService">
<wsdl:port binding="tns:CoshipServiceImplServiceSoapBinding" name="CoshipServiceImplPort">
<soap:address location="http://X.X.X.X:7843/sysway-boss-service/cxf/CoshipService" />
</wsdl:port>
</wsdl:service>

WSO2 发布如下:

<wsdl:portType name="CoshipServiceImplServicePortType"></wsdl:portType>
<wsdl:binding name="CoshipServiceImplServiceSoap11Binding" type="tns:CoshipServiceImplServicePortType">
</wsdl:binding><wsdl:binding name="CoshipServiceImplServiceSoap12Binding" type="tns:CoshipServiceImplServicePortType"></wsdl:binding>
<wsdl:binding name="CoshipServiceImplServiceHttpBinding" type="tns:CoshipServiceImplServicePortType"></wsdl:binding>
<wsdl:service name="CoshipServiceImplService"></wsdl:service>

It changed my port form "CoshipServiceImplPort" to "CoshipServiceImplServicePortType".

最佳答案

这可以通过在您的服务中将服务参数“useOriginalWsdl”设置为 true 来完成。

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

从 WSO2 App Server/ESB/DSS 你可以通过 UI 完成

  • 转到管理控制台用户界面。
  • 导航到管理 → Web 服务 → 列表 → 服务仪表板。
  • 从服务仪表板的“服务质量配置”选项中,选择“参数”选项并添加上述“useOriginalwsdl”服务参数。

关于wsdl - WSO2 更改了 wsdl 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11501828/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com