﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DefaultResponseSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:l="http://www.legiti-mate.com" targetNamespace="http://www.legiti-mate.com" elementFormDefault="qualified" attributeFormDefault="qualified">
  <xs:annotation>
    <xs:documentation xml:lang="en">
      This schema defines the default structure to be returned from all interface calls.
    </xs:documentation>
  </xs:annotation>
  <xs:element name="response">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="message" type="l:message" minOccurs="1" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="message">
    <xs:annotation>
      <xs:documentation xml:lang="en">
        A message record
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="messagetype">
        <xs:annotation>
          <xs:documentation>Represents a the message type. The allowed values are Error, Information, Warning and Success</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Error"/>
            <xs:enumeration value="Information"/>
            <xs:enumeration value="Warning"/>
            <xs:enumeration value="Success"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="description" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
