Web services wsdl契约的版本控制

Web services wsdl契约的版本控制,web-services,Web Services,有谁能告诉我如何为主要版本和次要版本的Wsdl契约(Wsdl第一服务)进行版本转换。任何运行的示例都会非常有用 我遵循的wsdl版本是这样的 <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="ProductServiceImplServicev2" targetNamespace="http://service.dtechtalkcenter.com/servicev2" xmln

有谁能告诉我如何为主要版本和次要版本的Wsdl契约(Wsdl第一服务)进行版本转换。任何运行的示例都会非常有用

我遵循的wsdl版本是这样的

 <?xml version="1.0" encoding="UTF-8"?>
   <wsdl:definitions name="ProductServiceImplServicev2"
   targetNamespace="http://service.dtechtalkcenter.com/servicev2"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
   xmlns:tns="http://service.dtechtalkcenter.com/servicev2"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" `enter code here`
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
   xmlns:v2_0="http://service.dtechtalkcenter.com/servicev2.0"
   xmlns:v2_1="http://service.dtechtalkcenter.com/servicev2.1">
  <wsdl:types>
    <xsd:schema elementFormDefault="unqualified" targetNamespace="http://service.dtechtalkcenter.com/servicev2.0">
    <xsd:element name="addProduct" type="v2_0:addProduct"/>
   <xsd:element name="addProductResponse" type="v2_0:addProductResponse"/>
    <xsd:element name="getProducts" type="v2_0:getProducts"/>
    <xsd:element name="getProductsResponse" type="v2_0:getProductsResponse"/>
    <xsd:complexType name="getProducts">
    <xsd:sequence/>
    </xsd:complexType>
    <xsd:complexType name="getProductsResponse">
    <xsd:sequence>
      <xsd:element maxOccurs="unbounded" minOccurs="0" name="return" type="v2_0:product"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="product">
    <xsd:sequence>
      <xsd:element name="cast" type="xsd:double"/>
      <xsd:element minOccurs="0" name="productCategory" type="xsd:string"/>
      <xsd:element minOccurs="0" name="productDetails" type="xsd:string"/>
    </xsd:sequence>
     </xsd:complexType>
    <xsd:complexType name="addProduct">
    <xsd:sequence>
      <xsd:element minOccurs="0" name="product" type="v2_0:product"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="addProductResponse">
    <xsd:sequence/>
    </xsd:complexType>


    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="addProductResponse">
    <wsdl:part name="parameters" element="v2_0:addProductResponse">
     </wsdl:part>
    </wsdl:message>
   <wsdl:message name="getProducts">
    <wsdl:part name="parameters" element="v2_0:getProducts">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="addProduct">
    <wsdl:part name="parameters" element="v2_0:addProduct">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="getProductsResponse">
    <wsdl:part name="parameters" element="v2_0:getProductsResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="ProductService_v2_0">
    <wsdl:operation name="getProducts">
      <wsdl:input name="getProducts" message="tns:getProducts">
    </wsdl:input>
      <wsdl:output name="getProductsResponse" message="tns:getProductsResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="addProduct">
      <wsdl:input name="addProduct" message="tns:addProduct">
    </wsdl:input>
      <wsdl:output name="addProductResponse" message="tns:addProductResponse">
    </wsdl:output>
    </wsdl:operation>
     </wsdl:portType>
    <wsdl:binding name="ProductServiceImplService_v2_0_SoapBinding" type="tns:ProductService_v2_0">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getProducts">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="getProducts">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="getProductsResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="addProduct">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="addProduct">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="addProductResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="ProductServiceImplService_v2_0">
    <wsdl:port name="ProductServiceImplPort" binding="tns:ProductServiceImplService_v2_0_SoapBinding">
      <soap:address location="http://localhost:8088/VersionService/services/ProductServiceImplPort"/>
     </wsdl:port>
    </wsdl:service>
  </wsdl:definitions>