This text file contains sample code fragments from: Section 17.1 - Designing Custom Policy Assertions Chapter 17 - Advanced WS-Policy Part II: Custom Policy Assertion Design, Runtime Representation, and Compatibility Book - Web Service Contract Design & Versioning for SOA Series - Prentice Hall Service-Oriented Computing Series from Thomas Erl Site - www.soabooks.com Example 17.1 - The standard wsam:Addressing assertion we've been using in many examples. Example 17.2 - The W3C XML Schema definition that provides the element declaration for the wsam:Addressing policy assertion. Note the use of the xs:anyAttribute element that allows for extensibility attributes, such as wsp:Optional or wsp:Ignorable, to be added when required. (You can access this schema at: http://www.w3.org/2007/05/addressing/metadata/.) Example 17.3 - The custom:TraceMessage assertion from the Ignorable Assertions section in Chapter 16. Example 17.4 - A simple XML Schema that defines the type for the TraceMessage global element. Example 17.5 - The completed policy expression, now including the namespace used to reference the target namespace of the XML schema for the TraceMessage global element. Example 17.6 - The optional custom:TraceMessageDetail assertion. (This is a separate example from Example 17.5, meaning that this assertion is not related to the custom:TraceMessage assertion we explained earlier.) Example 17.7 An XML schema that corresponds to the XML document instance from the previous example. The statements associated with the highlighted name attributes give us an idea of how an XML schema defines the structure of an XML document. Example 17.8 - The XML Schema definition for the custom:LogMessage assertion. ... ... Example 17.9 - The WS-Policy definition for the custom:LogMessage assertion. ... ... 8.3 TransportBinding Assertion ... 8.4 SymmetricBinding Assertion ... Example 17.10 - Some excerpts from the OASIS WS-SecurityPolicy XML Schema definition for the sp:TransportBinding and sp:SymmetricBinding assertions. Example 17.11 - The wsam:Addressing assertion being extended by a custom attribute. Example 17.12 - A policy expression containing the wsam:Addressing assertion along with the optional custom:ActionconMetadata assertion.