Hi
I have the same problem.
Another example :
The method with the following prototype :
The schema would be :
Code:
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element name="login" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetUserRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GetUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="user" type="tns:User" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
But I would like to add a new property in the "User" type. So I create the version 2.0 of my schema :
Code:
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element name="login" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
<xsd:element name="email" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetUserRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GetUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="user" type="tns:User" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
How to associate this new schema (2.0) with the endpoint and try to keep the compatibiliy with the previous version (1.0) with the help of an XSLT stylesheet ?
In the reference documentation, chapter 2.3.4, you speak about versioning but there is no more explanations in the others chapters.
Regards