我必须将wsdl从旧项目迁移到spring启动项目。
旧系统中的wsdl如下:
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://v2.ws.tone.services.tsb001.tsb.lutto.com/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns3="http://schemas.xmlsoap.org/soap/http"
xmlns:ns1="http://tsb.lutto.com/terp/ws/v2"
name="ServiceFacadeService"
targetNamespace="http://v2.ws.tone.services.tsb001.tsb.lutto.com/">
我尝试了spring引导代码,只能实现以下功能:
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:sch="http://psi.lutto.com/tsb/schema/servicecontract"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://v2.ws.tone.services.tsb001.tsb.lutto.com"
targetNamespace="http://v2.ws.tone.services.tsb001.tsb.lutto.com">
可以对以下代码进行哪些修改以生成类似的结构(客户端没有准备好更改除url以外的任何内容,因此我必须生成类似的wsdl)
public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema schema) {
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
wsdl11Definition.setLocationUri("/tsb/tone/ws/v2/TerpService/");
wsdl11Definition.setTargetNamespace("http://v2.ws.tone.services.tsb001.tsb.lutto.com");
wsdl11Definition.setServiceName("ServiceFacadeService");
wsdl11Definition.setPortTypeName("ServiceFacadePort");
wsdl11Definition.setSchema(schema);
return wsdl11Definition;
}
暂无答案!
目前还没有任何答案,快来回答吧!