<?xml version="1.0" encoding="UTF-8"?>
<!--This schema is for use by an OPEI Discovery Web Service only. Upon receipt of a DiscoverySubmit schema the web service immediately issues this schema containing the desired discovery information.-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.opeiwebservices.org/Schemas/DiscoveryResponse"
    targetNamespace="http://www.opeiwebservices.org/Schemas/DiscoveryResponse"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">
  <xsd:element name="DiscoveryResponse">
    <xsd:annotation>
      <xsd:documentation>This is the Root Element for this schema.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Discovery" maxOccurs="unbounded">
          <xsd:annotation>
            <xsd:documentation>This element group is for the requested discovery data. This group of element must be repeated for each web service hosted, other than the Discovery Web Service which uses this schema.</xsd:documentation>
          </xsd:annotation>
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="Service" type="xsd:string">
                <xsd:annotation>
                  <xsd:documentation>This element is for the name of the web service for which information is being provided. The OPEI standard name for the web service must be used.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="Endpoint" type="xsd:anyURI">
                <xsd:annotation>
                  <xsd:documentation>This element is for the URL or endpoint address required to consume the web service named above.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="Expiration" type="xsd:date">
                <xsd:annotation>
                  <xsd:documentation>This element is for the date on which validity of the above URL expires. If there is no planned expiration, the host must insert a date which guarantees the URL's validity to at least that date.</xsd:documentation>
                  <xsd:documentation>The purpose of providing a date is to reassure user's that an endpoint will be vaild for a guaranteed time during which they will have to resubmit a request to confirm further validity or obtain the new endpoint.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="BusinessRulesDoc" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                  <xsd:documentation>This element is for the namespace of the business rules document for this web service if one exists. It is the responsibility of the web service host to provide the namespace here whereby the dealer can download the applicable business rules document.</xsd:documentation>
                  <xsd:documentation>Care must be taken to ensure that this namespace is for the business rules document applicable. If there is no business rules document applicable, this field will not be used.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="StartDate" type="xsd:date" minOccurs="0">
                <xsd:annotation>
                  <xsd:documentation>This optional element is for specifying an effective date for a web service that is pending.</xsd:documentation>
                  <xsd:documentation>If a host has set up another web site based on new Version of an OPEI standard web service,or is simply changing the URL for a web service, this field can be used to notify users when the URL will be activated and available for use.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

