<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.imsglobal.org/services/lis/gms2p0/xsd/imsgms_v2p0"
    xmlns:gms="http://www.imsglobal.org/services/lis/gms2p0/xsd/imsgms_v2p0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="IMS GMS 2.0"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation>
            XSD Data File Information
            -------------------------
            Author:         Colin Smythe
            Date:           16th April, 2012
            Version:        Final 1.0
            Status:         Final Release
            Description:    The service realisation of the Group Management Service.  The core data model consists 
                            of: GroupRecord, Group, GroupType and Relationship.  A Group is a model of some collective 
                            activity, with the exception of Course representation.

            History:        Version 1.0: The first formal release of this PSM binding. This binding replaces the IMS GLC GMS v1.0 specification.

            License:        IPR, License and Distribution Notices

                            This machine readable file is derived from IMS Global Learning Consortium (GLC) specification IMS Group Management Service (GMS) Version 2.0
                            found at http://www.imsglobal.org/lis and the original IMS GLC schema binding or code base
                            http://www.imsglobal.org/lis.

                            Recipients of this document are requested to submit, with their comments, notification of any
                            relevant patent claims or other intellectual property rights of which they may be aware that might be
                            infringed by the schema binding contained in this document.

                            IMS GLC takes no position regarding the validity or scope of any intellectual property or other
                            rights that might be claimed to pertain to the implementation or use of the technology described in this
                            document or the extent to which any license under such rights might or might not be available; neither
                            does it represent that it has made any effort to identify any such rights. Information on IMS GLCs
                            procedures with respect to rights in IMS GLC specifications can be found at the IMS GLC Intellectual Property
                            Rights web page: http://www.imsglobal.org/ipr/imsipr_policyFinal.pdf.

                            Copyright (c) IMS Global Learning Consortium 1999-2012. All Rights Reserved.

                            License Notice for Users

                            Users of products or services that include this document are hereby granted a worldwide, royalty-free, 
                            non-exclusive license to use this document. 

                            Distribution Notice for Developers

                            Developers of products or services that are not original incorporators of this document and 
                            have not changed this document, that is, are distributing a software product that incorporates this 
                            document as is from a third-party source other than IMS, are hereby granted permission to copy,
                            display and distribute the contents of this document in any medium for any purpose without fee or 
                            royalty provided that you include this IPR, License and Distribution notice in its entirety on ALL
                            copies, or portions thereof.

                            Developers of products or services that are original incorporators of this document and wish 
                            to provide distribution of this document as is or with modifications and developers of products and 
                            services that are not original incorporators of this document and have changed this document, are
                            required to register with the IMS GLC community on the IMS GLC website as described in the following two
                            paragraphs:-

                            *  If you wish to distribute this document as is, with no modifications, you are hereby granted 
                               permission to copy, display and distribute the contents of this document in any medium for any 
                               purpose without fee or royalty provided that you include this IPR, License and Distribution notice in
                               its entirety on ALL copies, or portions thereof, that you make and you complete a valid license 
                               registration with IMS and receive an email from IMS granting the license. To register, follow the 
                               instructions on the IMS website: http://www.imsglobal.org/specificationdownload.cfm. Once 
                               registered you are granted permission to transfer unlimited distribution rights of this document for the 
                               purposes of third-party or other distribution of your product or service that incorporates this 
                               document as long as this IPR, License and Distribution notice remains in place in its entirety; 

                            *  If you wish to create and distribute a derived work from this document, you are hereby 
                               granted permission to copy, display and distribute the contents of the derived work in any medium for 
                               any purpose without fee or royalty provided that you include this IPR, License and Distribution 
                               notice in its entirety on ALL copies, or portions thereof, that you make and you complete a valid 
                               profile registration with IMS GLC and receive an email from IMS GLC granting the license. To register, follow
                               the instructions on the IMS GLC website: http://www.imsglobal.org/profile/. Once registered you are 
                               granted permission to transfer unlimited distribution rights of the derived work for the purposes of 
                               third-party or other distribution of your product or service that incorporates the derived work as long 
                               as this IPR, License and Distribution notice remains in place in its entirety. 

                            The limited permissions granted above are perpetual and will not be revoked by IMS GLC or its 
                            successors or assigns.

                            THIS SPECIFICATION IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NONINFRINGEMENT IS
                            EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICATION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTIUM
                            NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF
                            ANY NATURE WHATSOEVER, DIRECTLY OR INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION.

            UML Source Service File Information
            -----------------------------------
            Choreography:     Sync
            Status Object:    StatusInfo

            Source UML File Information
            ---------------------------
            The source file information must be supplied as an XMI file (without diagram layout information).
            The supported UML authoring tools are:
            (a) Poseidon - v6 (and later)

            Source XSLT File Information
            ----------------------------
            XSL Generator:    UMLtoWSDLTransformv1p0.xsl
            XSLT Processor:   Xalan
            Release:          1.0
            Date:             31st March, 2012
            Autogen Engineer: Colin Smythe (IMS GLC, UK)
            Autogen Date:     2012-04-16

            IMS GLC Auto-generation Binding Tool-kit (I-BAT)
            ------------------------------------------------
            This file was auto-generated using the IMS GLC Binding Auto-generation Tool-kit (I-BAT).  While every
            attempt has been made to ensure that this tool auto-generates the files correctly, users should be aware
            that this is an experimental tool.  Permission is given to make use of this tool.  IMS GLC makes no
            claim on the materials created by third party users of this tool.  Details on how to use this tool
            are contained in the IMS GLC "I-BAT" Documentation available at the IMS GLC web-site.

            Tool Copyright:  2005-2012 (c) IMS Global Learning Consortium Inc.  All Rights Reserved.
        </xs:documentation>
    </xs:annotation>

    <!-- Generate Global Attributes *********************************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate Global List Types *********************************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate Namespaced extension Group  ************************************************************* -->

    <!-- ================================================================================================== -->

    <!-- Generate Special DataTypes  ********************************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the enumerated simpleType declarations ************************************************** -->

    <xs:simpleType name="Relation.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Parent"/>
            <xs:enumeration value="Child"/>
            <xs:enumeration value="Sibling"/>
            <xs:enumeration value="TemplateParent"/>
            <xs:enumeration value="SectionChild"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="imsx_CodeMajor.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="success"/>
            <xs:enumeration value="processing"/>
            <xs:enumeration value="failure"/>
            <xs:enumeration value="unsupported"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="imsx_Severity.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="status"/>
            <xs:enumeration value="warning"/>
            <xs:enumeration value="error"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="imsx_CodeMinorValue.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="fullsuccess"/>
            <xs:enumeration value="createsuccess"/>
            <xs:enumeration value="nosourcedids"/>
            <xs:enumeration value="idallocfail"/>
            <xs:enumeration value="overflowfail"/>
            <xs:enumeration value="idallocinusefail"/>
            <xs:enumeration value="invaliddata"/>
            <xs:enumeration value="incompletedata"/>
            <xs:enumeration value="partialdatastorage"/>
            <xs:enumeration value="unknownobject"/>
            <xs:enumeration value="deletefailure"/>
            <xs:enumeration value="targetreadfailure"/>
            <xs:enumeration value="savepointerror"/>
            <xs:enumeration value="savepointsyncerror"/>
            <xs:enumeration value="toomuchdata"/>
            <xs:enumeration value="unknownquery"/>
            <xs:enumeration value="unknownvocabulary"/>
            <xs:enumeration value="unknownmdvocabulary"/>
            <xs:enumeration value="unknowngtvocabulary"/>
            <xs:enumeration value="unknownextension"/>
            <xs:enumeration value="targetisbusy"/>
            <xs:enumeration value="unauthorizedrequest"/>
            <xs:enumeration value="linkfailure"/>
            <xs:enumeration value="unsupportedLIS"/>
            <xs:enumeration value="unsupportedLISoperation"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="imsx_GWSVersionValue.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="V1.0"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="MediaMode.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="uri"/>
            <xs:enumeration value="entityref"/>
            <xs:enumeration value="base64"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="ContentRefType.Type">
        <xs:restriction base="xs:string">
            <xs:enumeration value="text"/>
            <xs:enumeration value="image"/>
            <xs:enumeration value="audio"/>
            <xs:enumeration value="video"/>
            <xs:enumeration value="application"/>
            <xs:enumeration value="applet"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:element name="relation" type="gms:Relation.Type"/>

    <xs:element name="imsx_codeMajor" type="gms:imsx_CodeMajor.Type"/>

    <xs:element name="imsx_severity" type="gms:imsx_Severity.Type"/>

    <xs:element name="imsx_codeMinorFieldValue" type="gms:imsx_CodeMinorValue.Type"/>

    <xs:element name="imsx_version" type="gms:imsx_GWSVersionValue.Type"/>

    <xs:element name="mediamode" type="gms:MediaMode.Type"/>

    <xs:element name="contentRefType" type="gms:ContentRefType.Type"/>

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Parameter) ***************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Derived) ******************************* -->

    <xs:simpleType name="Email.Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value = "4096"/>
            <xs:minLength value = "1"/>
            <xs:whiteSpace value = "preserve"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="URL.Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value = "4096"/>
            <xs:minLength value = "1"/>
            <xs:whiteSpace value = "preserve"/>
        </xs:restriction>
    </xs:simpleType>

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Union) ********************************* -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Complex) ******************************* -->

    <xs:element name="begin" type="xs:dateTime" />

    <xs:element name="descriptionText" type="xs:string" />

    <xs:element name="email" type="gms:Email.Type"/>

    <xs:element name="end" type="xs:dateTime" />

    <xs:element name="enrollAccept" type="xs:boolean" />

    <xs:element name="enrollAllowed" type="xs:boolean" />

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

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

    <xs:element name="fieldName" type="xs:normalizedString" />

    <xs:element name="fieldType" type="xs:normalizedString" />

    <xs:element name="fieldValue" type="xs:normalizedString" />

    <xs:element name="imsx_codeMinorFieldName" type="xs:string" default="TargetEndSystem" />

    <xs:element name="imsx_description" type="xs:string" />

    <xs:element name="imsx_messageIdentifier" type="xs:string" />

    <xs:element name="imsx_messageRefIdentifier" type="xs:string" />

    <xs:element name="imsx_operationRefIdentifier" type="xs:string" />

    <xs:element name="imsx_sendingAgentIdentifier" type="xs:normalizedString" />

    <xs:element name="language" type="xs:normalizedString" />

    <xs:element name="longDescription" type="xs:string" />

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

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

    <xs:element name="mimeType" type="xs:normalizedString" />

    <xs:element name="refAgentInstanceID" type="xs:normalizedString" />

    <xs:element name="restrict" type="xs:boolean" />

    <xs:element name="shortDescription" type="xs:string" />

    <xs:element name="textString" type="xs:string" />

    <xs:element name="url" type="gms:URL.Type"/>

    <!-- ================================================================================================== -->

    <!-- Generate the derived data-type elements based upon simpleType ************************************ -->

    <xs:simpleType name="GUID.Type">
        <xs:restriction base="xs:string"/>
    </xs:simpleType>

    <xs:simpleType name="SequenceIdentifier.Type">
        <xs:restriction base="xs:dateTime"/>
    </xs:simpleType>

    <xs:simpleType name="QueryObject.Type">
        <xs:restriction base="xs:string"/>
    </xs:simpleType>

    <!-- ================================================================================================== -->

    <!-- Generate the derived data-type elements based upon derived simpleType **************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the data-type ComplexTypes ************************************************************** -->

    <xs:complexType name="Description.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Description complexType is the container for all of the material that is used to describe something. It has short (text), ong (text) and full (multimedia) forms.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:shortDescription" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:longDescription" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:fullDescription" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="EnrollControl.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The EnrollControll complexType is the container for the information that controls enrollment to the Group.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:enrollAccept" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:enrollAllowed" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="ExtensionField.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The ExtensionField complexType is the container for each of the extension entries. This is a name/type/value ttiple.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:fieldName" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:fieldType" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:fieldValue" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="FullDescription.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The FullDescription complexType is the container for the multimedia-based description.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:mediamode" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:contentRefType" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:mimeType" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:descriptionText" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Group.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Group data-type is the container for the Group data model.  A Group 
can reflect any composition of like activities (except where constrained by 
the use of the Course Management Service).
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:groupType" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:email" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:url" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:timeframe" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:relationship" minOccurs = "0" maxOccurs = "unbounded"/>
            <xs:element ref="gms:enrollControl" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:org" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:description" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:dataSource" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:recordInfo" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:extension" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="GroupRecord.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The GroupRecord complexType defines the association between the SourcedGUID of the object and the Group object itself.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:sourcedGUID" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:group" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="GroupRecordSet.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The GroupRecordSet is the complexType for a collection of groupRecords.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:groupRecord" minOccurs = "0" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="GroupType.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The GroupType complexType is the container for the defintion of the type of the Group. This can be a multifaceted typing using some agreed scheme.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:scheme" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:typevalue" minOccurs = "1" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="GUIDSet.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The GUIDSet data-type is the container for a set of SourcedIds.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:sourcedId" minOccurs = "0" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="IMSExtension.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The IMSExtension complexType is the container for the set of extension information.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:extensionNameVocabulary" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:extensionTypeVocabulary" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:extensionField" minOccurs = "1" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="imsx_CodeMinor.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The CodeMinor complexType is the container for the set of code minor status codes reported in the associated IMS SOAP message header.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:imsx_codeMinorField" minOccurs = "1" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="imsx_CodeMinorField.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The CodeMinorField complexType is the container a single code minor status code.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:imsx_codeMinorFieldName" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_codeMinorFieldValue" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="imsx_RequestHeaderInfo.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The RequestHeaderInfo complexType is the container for the information to be placed in the SOAP header for the request message transmitted for the associated operation call.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:imsx_version" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_messageIdentifier" minOccurs = "1" maxOccurs = "1"/>
            <xs:element name="imsx_sendingAgentIdentifier" type="xs:normalizedString" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="imsx_ResponseHeaderInfo.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The ResponseHeaderInfo complexType is the container for the information to be placed in the SOAP header for the response message transmitted for the associated operation call.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:imsx_version" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_messageIdentifier" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_sendingAgentIdentifier" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_statusInfo" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="imsx_StatusInfo.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The StatusInfo complexType is the container for the status code and associated information returned within the SOAP message as defined by the IMS GWSv1.0 specification.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:imsx_codeMajor" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_severity" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_messageRefIdentifier" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_operationRefIdentifier" minOccurs = "0" maxOccurs = "unbounded"/>
            <xs:element ref="gms:imsx_description" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:imsx_codeMinor" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Metadata.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Metadata complexType is the container for the meta-data that is used to describe an object. At the current time this is just a set of name/type/value tuples for a given vocabualry.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:metadataNameVocabulary" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:metadataTypeVocabulary" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:metadataField" minOccurs = "1" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Org.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Org compelxType is the container for information about the organization that has ownership of the Group.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:orgName" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:orgUnit" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:type" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:id" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Relationship.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Relationship complexType is the container for the definition of the relationship between two Groups. The possible relationships are: Parent, Child, Sibling, TemplateParent and SectionChild. The relationship is defined as 'A is the relation of B' where A is the Group identified by the SourcedId in the Relationship class.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:relationId" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:relation" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:sourcedId" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:label" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="SourcedGUID.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The SourcedGUID complexType is the container for the globally unique identifier for the associated Group object.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:refAgentInstanceID" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:sourcedId" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Text.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The Text complexType is the container for a language specific string. The language is denoted using the ISO 639 code set.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:language" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:textString" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="TimeFrame.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The TimeFrame complexType is the container for time information about the Group.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:begin" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:end" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:restrict" minOccurs = "0" maxOccurs = "1"/>
            <xs:element ref="gms:adminPeriod" minOccurs = "0" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="TypeValue.Type" mixed="false">
        <xs:annotation>
            <xs:documentation source="umldocumentation">
                The TypeValue complexType is the container for the actual type/level tuple for the type of Group.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="gms:id" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:type" minOccurs = "1" maxOccurs = "1"/>
            <xs:element ref="gms:level" minOccurs = "1" maxOccurs = "1"/>
        </xs:sequence>
    </xs:complexType>

    <!-- ================================================================================================== -->

    <!-- Declaration of the elements (Complex) ************************************************************ -->

    <xs:element name="adminPeriod" type="gms:Text.Type"/>

    <xs:element name="description" type="gms:Description.Type"/>

    <xs:element name="enrollControl" type="gms:EnrollControl.Type"/>

    <xs:element name="extension" type="gms:IMSExtension.Type"/>

    <xs:element name="extensionField" type="gms:ExtensionField.Type"/>

    <xs:element name="fullDescription" type="gms:FullDescription.Type"/>

    <xs:element name="group" type="gms:Group.Type"/>

    <xs:element name="groupType" type="gms:GroupType.Type"/>

    <xs:element name="id" type="gms:Text.Type"/>

    <xs:element name="imsx_codeMinor" type="gms:imsx_CodeMinor.Type"/>

    <xs:element name="imsx_codeMinorField" type="gms:imsx_CodeMinorField.Type"/>

    <xs:element name="imsx_statusInfo" type="gms:imsx_StatusInfo.Type"/>

    <xs:element name="label" type="gms:Text.Type"/>

    <xs:element name="level" type="gms:Text.Type"/>

    <xs:element name="metadataField" type="gms:ExtensionField.Type"/>

    <xs:element name="org" type="gms:Org.Type"/>

    <xs:element name="orgName" type="gms:Text.Type"/>

    <xs:element name="orgUnit" type="gms:Text.Type"/>

    <xs:element name="recordInfo" type="gms:Metadata.Type"/>

    <xs:element name="scheme" type="gms:Text.Type"/>

    <xs:element name="sourcedGUID" type="gms:SourcedGUID.Type"/>

    <xs:element name="timeframe" type="gms:TimeFrame.Type"/>

    <xs:element name="type" type="gms:Text.Type"/>

    <xs:element name="typevalue" type="gms:TypeValue.Type"/>

    <!-- ================================================================================================== -->

    <!-- Declaration of the elements (Derived) ************************************************************* -->

    <xs:element name="dataSource" type="gms:GUID.Type"/>

    <!-- ================================================================================================== -->

    <!-- Declaration of the message parameter elements **************************************************** -->

    <xs:element name="fromSavePoint" type="gms:SequenceIdentifier.Type"/>

    <xs:element name="groupRecord" type="gms:GroupRecord.Type"/>

    <xs:element name="groupRecordSet" type="gms:GroupRecordSet.Type"/>

    <xs:element name="groupsIdentifierSet" type="gms:GUIDSet.Type"/>

    <xs:element name="newSourcedId" type="gms:GUID.Type"/>

    <xs:element name="personSourcedId" type="gms:GUID.Type"/>

    <xs:element name="queryObject" type="gms:QueryObject.Type"/>

    <xs:element name="relationId" type="gms:GUID.Type"/>

    <xs:element name="relationship" type="gms:Relationship.Type"/>

    <xs:element name="savePoint" type="gms:SequenceIdentifier.Type"/>

    <xs:element name="sourcedId" type="gms:GUID.Type"/>

    <xs:element name="sourcedIdSet" type="gms:GUIDSet.Type"/>

    <!-- ================================================================================================== -->

    <!-- Declaration of the message body elements ********************************************************* -->

    <xs:element name="createGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:groupRecord"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="createGroupResponse" />

    <xs:element name="createByProxyGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:groupRecord"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="createByProxyGroupResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="deleteGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="deleteGroupResponse" />

    <xs:element name="addGroupRelationshipRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:relationship"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="addGroupRelationshipResponse" />

    <xs:element name="removeGroupRelationshipRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:relationId"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="removeGroupRelationshipResponse" />

    <xs:element name="readGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:groupRecord" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readAllGroupIdsRequest" />

    <xs:element name="readAllGroupIdsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedIdSet" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupIdsForPersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:personSourcedId"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupIdsForPersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:groupsIdentifierSet" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupIdsFromSavePointRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:fromSavePoint"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupIdsFromSavePointResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedIdSet" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="gms:savePoint" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupsRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedIdSet"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:groupRecordSet" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="gms:savePoint" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupsFromSavePointRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:fromSavePoint"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="readGroupsFromSavePointResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:groupRecordSet" minOccurs="0" maxOccurs="1"/>
                <xs:element ref="gms:savePoint" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="updateGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:groupRecord"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="updateGroupResponse" />

    <xs:element name="replaceGroupRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:groupRecord"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="replaceGroupResponse" />

    <xs:element name="discoverGroupIdsRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:queryObject"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="discoverGroupIdsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedIdSet" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="changeGroupIdentifierRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="gms:sourcedId"/>
                <xs:element ref="gms:newSourcedId"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="changeGroupIdentifierResponse" />

    <!-- ================================================================================================== -->

    <!-- Declaration of the root element(s) *************************************************************** -->

    <xs:element name="imsx_syncRequestHeaderInfo" type="gms:imsx_RequestHeaderInfo.Type"/>
    <xs:element name="imsx_syncResponseHeaderInfo" type="gms:imsx_ResponseHeaderInfo.Type"/>

    <!-- ================================================================================================== -->

</xs:schema>
