list 2.18 XML metadata defined class hierarchy
complex type in the code to the general form of the class implementation. Complicated further by increasing the special structure of the class inheritance relationship is defined. In this way, a common type such as “price” can be derived for a more specific type, such as “stock price” or “house price”. WCF supports the WSDL through the appropriate representation of the class hierarchy, the class structure and between XML serialization and deserialization are also removed from the properties of each class and add to a collection.
2.17 in the list, the class of Price by the three elements and a sub-classes. StockPrice, inherited from Price. Namespace applied to the two classes so they perfectly legal in XML by the name of. Each element retains its own namespace.
list 2.19 SOAP message body serialization class hierarchy
namespace Stock
XML metadata to generate these two lists are used to support the basis for the relationship shown in 2.18. Price XML metadata displayed first, followed by shows StockPrice XML metadata. Note StockPrice Import Price metadata. Note that in the XSD, all elements are defined with minOccurs = 0, because they are not in the code using [isRequired = true] to define a property.
2.17 using data contract defines a list of the class hierarchy