我的服务是从wsdl文件中挑选出来的。但是发布的服务已经变得很糟糕。如果我想将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".
答案 0 :(得分:6)
这可以通过在服务中将服务参数'useOriginalWsdl'设置为true来完成。
<parameter name="useOriginalwsdl">true</parameter>
从WSO2 App Server / ESB / DSS,您可以通过UI
完成