WS-Polling: XML Schema

Web Services Polling (WS-Polling)
W3C Member Submission 26-October-2005

XML Schema extracted from: Appendix I - XML Schema

See: "IBM Submits Web Services Polling (WS-Polling) Specification to W3C." News story 2005-10-28.



<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
    targetNamespace='http://www.w3.org/2005/08/ws-polling'
    xmlns:wsp='http://www.w3.org/2005/08/ws-polling'
    xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing'
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    elementFormDefault='qualified'
    blockDefault='#all' >

  <xs:import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"
             schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>

  <xs:element name='GetMessage'>
    <xs:complexType>
      <xs:sequence>
        <xs:element ref='wsa:MessageID' minOccurs='0' />
        <xs:element name='To' minOccurs='0'
                    type="wsa:EndpointReferenceType"/>
	<xs:element name='extensions' minOccurs='0' />
      </xs:sequence>
      <xs:anyAttribute namespace='##any' processContents='lax'/>
    </xs:complexType>
  </xs:element>

  <xs:element name='NoMessageAvailable' >
    <xs:complexType>
      <xs:attribute name='reason' type='xs:QName' />
      <xs:anyAttribute namespace='##any' processContents='lax' />
    </xs:complexType>
  </xs:element>

  <xs:complexType name="StatusRequested">
    <xs:sequence>
      <xs:element ref='wsa:MessageID' minOccurs='0' />
      <xs:element name='To' minOccurs='0'
                  type="wsa:EndpointReferenceType"/>
      <xs:element name='extensions' minOccurs='0' />
    </xs:sequence>
    <xs:anyAttribute namespace='##any' processContents='lax'/>
  </xs:complexType>

  <xs:complexType name="Status">
    <xs:sequence>
      <xs:element ref='wsa:MessageID' minOccurs='0' />
      <xs:element name='To' minOccurs='0'
                  type="wsa:EndpointReferenceType"/>
      <xs:element name='extensions' minOccurs='0' />
    </xs:sequence>
    <xs:attribute name='messagesPending' type='xs:boolean'
                  use='required' />
    <xs:anyAttribute namespace='##any' processContents='lax'/>
  </xs:complexType>

</xs:schema>