This text file contains sample code fragments from:
Section 13.2 - Representing Relationships in XML Schemas
Chapter 13 - Advanced XML Schema Part II: Reusability, Relational Design, and Industry Schemas
Book - Web Service Contract Design & Versioning for SOA
Series - Prentice Hall Service-Oriented Computing Series from Thomas Erl
Site - www.soabooks.com
AY2344
1234567890123
Service Blaster 2000
...
CC1567
1234567890456
ActionCon X3T
CC1568
1234567890498
ActionCon X3T Turbo
BB1764
1234567890124
Interactive Service Magic
...
CC1567
1234567890456
ActionCon X3T
CC1573
1234567890455
ActionCon X3B
Example 13.9 - A message instance that uses repeating constructs to represent many-to-many relationships.
AY2344
123456780123
Service Blaster 2000
...
BB1764
1234567890124
Interactive Service Magic
...
CC1567
1234567890456
ActionCon X3T
CC1568
1234567890498
ActionCon X3T Turbo
CC1573
1234567890455
ActionCon X3B
Example 13.10 - This message instance uses identifiers to emulate a many-to-many relationship between games and consoles.
Example 13.11 - An element with identity constraints established via the xsd:key and xsd:keyref elements.
AY2344
1234567890123
Service Blaster 2000
...
BB1764
1234567890124
Interactive Service Magic
...
CC1567
1234567890456
ActionCon X3T
CC1568yref
1234567890498
ActionCon X3T Turbo
CC1573
1234567890455
ActionCon X3B
requires memory upgrade
Example 13.12 - An instance of a message wherein reference ID values are used to associate game and console elements with game-console elements.