2012-07-16 54 views
1

我的服务从wsdl文件中选取。但是,发布的服务正在进行中。如果我想将wso2发布为我的wsdl文件。如何设置? 例如,我的WSDL文件:WSO2更改了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". 

回答

5

这可以通过设置服务参数“useOriginalWsdl”作为真正的服务来完成。

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

从WSO2应用服务器/ ESB/DSS,您可以通过从UI

  • 进入管理控制台界面完成。
  • 导航到管理→Web服务→列表→服务仪表板。
  • 从服务仪表板中的“服务质量配置”选项中,选择'参数'选项并添加上面的'useOriginalwsdl'服务参数。
+0

非常感谢。这真的很有帮助。最好的祝福。 – luohao 2012-07-18 06:29:18