This text file contains sample code fragments from:
Section 22.5 - Loose Schema Versioning (Using Wildcards)
Chapter 22 - Versioning Message Schemas
Book - Web Service Contract Design & Versioning for SOA
Series - The Prentice Hall Service Technology Series from Thomas Erl
Site - www.servicetechbooks.com
Example 22.25 - The base schema is extended with xsd:any and xsd:anyAttribute wildcards. Our assumption is that we designed these extensions into version 1.0 of our base schema in support of future Loose versioning.
AY2345
Service Blaster 2000
Example 22.26 - A basic XML document instance that conforms to the original element declarations.
AY2345
Service Blaster 2000
true
Example 22.27 - An extended XML document instance that conforms to the schema because of its use of wildcards.
Example 22.28 - The xsd:any and xsd:anyAttribute wildcards wrapped in a separate extension element declaration.
AY2345
Service Blaster 2000
true
Example 22.29 - A message instance containing the required extension wrapper element in order to conform to the preceding schema.
Example 22.30 - An XML schema in the same target namespace as the preceding schema, providing the element declaration for the available element.
Example 22.31 - The productName element declaration has been identified as an XML Schema component that needs to be removed.
Example 22.32 - The LineItemType construct after the productName element declaration has been removed.
Example 22.33 - The productID element declaration is identified as having to be removed from this schema.
Example 22.34 - The value of the type attribute of the productID element is changed to "xsd:anyType."
Example 22.35 - The ##other attribute value used to require that elements belonging to the unknown set reside in a namespace other than the target namespace of the primary schema document. However, the second schema document is still using the same target namespace.
Example 22.36 - The secondary schema has been corrected to use a new target namespace.
Example 22.37 - The processContents attribute of the xsd:any wildcard declaration set to a value of "skip."