ACTION: Rich to begin work on schema

It's a lovely Friday afternoon.  What better way to spend some moments 
than with W3C XML Schema? :)

Attached is a schema for the current ws-addressing documents.  Actually, 
just the core, since I couldn't figure out how to do the WSDL bindings 
(and I'm willing to wait until a future draft for those), and the SOAP 
MEPs don't really have anything to schema-cize.

I do have one question (three, actually), and they're marked by XXX in 
the document.

We can perhaps close this action; I believe ongoing maintenance is an 
open issue, or agreed to be left to the document editors.

	/r$

-- 
Rich Salz, Chief Security Architect
DataPower Technology                           http://www.datapower.com
XS40 XML Security Gateway   http://www.datapower.com/products/xs40.html
XML Security Overview  http://www.datapower.com/xmldev/xmlsecurity.html
<schema targetNamespace="http://www.w3.org/2004/10/addressing"
  xmlns:wsa="http://www.w3.org/2004/10/addressing"
  elementFormDefault="qualified" attributeFormDefault="unqualified"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns="http://www.w3.org/2001/XMLSchema">

  <complexType name="EndpointReferenceType">
    <sequence>
      <element name="Address" type="xs:QName"/>
      <element name="ReferenceProperties" minOccurs="0">
        <complexType>
          <sequence>
            <!-- XXX Can ReferenceProperties be empty? -->
            <any namespace="##any" processContents="lax" maxOccurs="unbounded"/>
          </sequence>
        </complexType>
      </element>
      <element name="ReferenceParameters" minOccurs="0">
        <complexType>
          <sequence>
            <!-- XXX Can ReferenceParameters be empty? -->
            <any namespace="##any" processContents="lax" maxOccurs="unbounded"/>
          </sequence>
        </complexType>
      </element>
      <element name="PortType" type="xs:QName" minOccurs="0"/>
      <element name="ServiceName" minOccurs="0">
        <complexType>
          <simpleContent>
            <extension base="xs:QName">
              <attribute name="PortName" type="xs:NCName" use="optional"/>
            </extension>
          </simpleContent>
        </complexType>
      </element>
      <element name="Policies" minOccurs="0">
        <complexType>
          <sequence>
            <!-- XXX Can Policies be empty? -->
            <any namespace="##any" processContents="lax" maxOccurs="unbounded"/>
          </sequence>
        </complexType>
      </element>
      <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <anyAttribute namespace="##other" processContents="lax"/>
  </complexType>

  <!--
  The following elements (MessageID, RelatesTo, To, Action, From,
  ReplyTo, and FaultTo) are for use as SOAP Header elements.
  -->

  <element name="MessageID" type="xs:anyURI"/>

  <element name="RelatesTo">
    <complexType>
      <simpleContent>
        <extension base="xs:QName">
          <attribute name="RelationshipType" type="xs:QName" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

  <element name="To" type="xs:anyURI"/>

  <element name="Action" type="xs:anyURI"/>

  <element name="From" type="wsa:EndpointReferenceType"/>

  <element name="ReplyTo" type="wsa:EndpointReferenceType"/>

  <element name="FaultTo" type="wsa:EndpointReferenceType"/>

</schema>

Received on Friday, 19 November 2004 21:46:53 UTC