<?xml version="1.0" encoding="UTF-8"?>

<!--

BCAST NT Backend Schema - BCAST Notification Backend Interface Messages
   version - 1.3
   date    - 31 Jan 2017

FILE INFORMATION

  OMA Permanent Document
    File: OMA-SUP-XSD_bcast_nt_backend-V1_3-20170131-A.xsd
    Type: Text - Schema Description

  Public Reachable Information
    Path: http://www.openmobilealliance.org/tech/profiles
    Name: bcast_nt_backend-v1_3.xsd

NORMATIVE INFORMATION

  Information about this file can be found in the latest revision
  of the specification

    OMA-TS-BCAST_Services-V1_3

  available at http://www.openmobilealliance.org/

  Send comments to technical-comments@mail.openmobilealliance.org

LEGAL DISCLAIMER

  Use of this document is subject to all of the terms and conditions
  of the Use Agreement located at
  http://www.openmobilealliance.org/UseAgreement.html,
  provided, however, that section (d) under "Documents - Terms 
  of Use" which states, "no modifications are made to such 
  Documents" does not apply to your use.

  The Open Mobile Alliance authorizes you to copy this document, 
  provided that you retain all copyright and other proprietary  
  notices contained in the original materials on any copies of the 
  materials and  that you comply strictly with these terms. This 
  copyright permission does not constitute an endorsement of the 
  products or services. The Open Mobile Alliance assumes no 
  responsibility for errors or omissions in this document.


  Each Open Mobile Alliance member has agreed to use reasonable
  endeavors to inform the Open Mobile Alliance in a timely manner of
  Essential IPR as it becomes aware that the Essential IPR is related
  to the prepared or published specification.  However, the members
  do not have an obligation to conduct IPR searches.  The declared
  Essential IPR is publicly available to members and non-members of
  the Open Mobile Alliance and may be found on the "OMA IPR
  Declarations" list at http://www.openmobilealliance.org/ipr.html.
  The Open Mobile Alliance has not conducted an independent IPR review
  of this document and the information contained herein, and makes no
  representations or warranties regarding third party IPR, including
  without limitation patents, copyrights or trade secret rights.  This
  document may contain inventions for which you must obtain licenses
  from third parties before making, using or selling the inventions.
  Defined terms above are set forth in the schedule to the Open Mobile
  Alliance Application Form.

  NO REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
  MADE BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
  OR ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
  IPR DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
  COMPLETENESS, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
  NOT SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

  THE OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
  DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
  EXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
  DOCUMENTS AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

  Copyright 2017 Open Mobile Alliance All Rights Reserved.
  Used with the permission of the Open Mobile Alliance under the
  terms set forth above.

-->
<!--
	CHANGE HISTORY

	31012017 Status changed to Approved by TP, TP Ref # OMA-TP-2017-0003-INP_BCAST-V1_3_ERP_for_Final_Approval
-->

<xs:schema
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns="urn:oma:xml:bcast:nt:backend:1.3"
	xmlns:ntmsg="urn:oma:xml:bcast:nt:message:1.3"
	targetNamespace="urn:oma:xml:bcast:nt:backend:1.3"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified">
	<!-- Importing referenced BCAST namespaces -->
	<xs:import namespace="urn:oma:xml:bcast:nt:message:1.3" schemaLocation="http://www.openmobilealliance.org/tech/profiles/bcast_nt_message-v1_3.xsd"/>
	<!--
		==================================================
		Delivery Message of Notification Event
		==================================================
	-->
	<!-- Request Message-->
	<xs:element name="NTEReq" type="NTEReqType">
		<xs:annotation>
			<xs:documentation>
				Specifies the delivery message of Notification Event for generating Notification Message.
			</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NTEReqType">
		<xs:sequence>
			<xs:element name="NotificationEvent" type="NotificationEventType" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="nteID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="entityAddress" type="xs:anyURI" use="required"/>
		<xs:attribute name="deliveryPriority" type="xs:boolean" use="optional"/>
	</xs:complexType>
	<xs:complexType name="NotificationEventType">
		<xs:choice>
			<xs:element ref="ntmsg:NotificationMessage" minOccurs="0"/>
			<xs:element name="Private" minOccurs="0">
				<!-- This container provides the place for proprietary and application-specific data. Extensions SHALL use a different namespace. -->
				<xs:complexType>
					<xs:sequence>
						<xs:any namespace="##other" processContents="skip"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<!-- Response Message-->
	<xs:element name="NTERes" type="NTEResType">
		<xs:annotation>
			<xs:documentation>
				The response message for NTEReq.
			</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NTEResType">
		<xs:sequence>
			<xs:element name="Result" maxOccurs="unbounded">
				<xs:complexType>
					<xs:attribute name="nteID" type="xs:unsignedInt" use="required"/>
					<xs:attribute name="statusCode" type="GlobalStatusCodeType" use="required"/>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--
		==================================================
		Delivery Message of Notification Message
		==================================================
	-->
	<!-- Request Message-->
	<xs:element name="NTDReq" type="NTDReqType">
		<xs:annotation>
			<xs:documentation>
				Specifies the Request message of Notification Message Delivery from NTG to NTDA.
			</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NTDReqType">
		<xs:sequence>
			<xs:element name="TargetAddress" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:string">
							<xs:attribute name="deliveryChannel" type="xs:boolean" use="required"/>
							<xs:attribute name="addressType" type="AddressRangeType" use="required"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element ref="ntmsg:NotificationMessage" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="ntdReqID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="entityAddress" type="xs:anyURI" use="required"/>
		<xs:attribute name="deliveryPriority" type="xs:boolean" use="optional"/>
	</xs:complexType>
	<!-- Response Message-->
	<xs:element name="NTDRes" type="NTDResType">
		<xs:annotation>
			<xs:documentation>
				The response message for NTDReq.
			</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NTDResType">
		<xs:sequence>
			<xs:element name="Result" maxOccurs="unbounded">
				<xs:complexType>
					<xs:attribute name="ntdReqID" type="xs:unsignedInt" use="required"/>
					<xs:attribute name="statusCode" type="GlobalStatusCodeType" use="required"/>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--
		==================================================
		Referenced Types
		==================================================
	-->
	<!-- Private data type -->
	<xs:complexType name="PrivateDataType">
		<xs:sequence>
			<xs:annotation>
				<xs:documentation>
					This container provides the place for proprietary data formats carried in back end messages.
					These SHALL use a different namespace.
				</xs:documentation>
			</xs:annotation>
			<xs:any namespace="##other" processContents="skip"/>
		</xs:sequence>
	</xs:complexType>
	<!--
		==================================================
		Enumeration Types
		==================================================
	-->
	<!-- reserved for proprietary use -->
	<xs:simpleType name="ReservedProprietaryExtByteRangeType">
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="128"/>
			<xs:maxInclusive value="255"/>
		</xs:restriction>
	</xs:simpleType>
	<!--
		Global status codes
			0 - 29    defined in OMA-TS-BCAST_Services-V1_0
			30 -127  reserved for future use
			128 - 255 reserved for proprietary use
	-->
	<xs:simpleType name="GlobalStatusCodeType">
		<xs:union memberTypes="GlobalStatusCodeLRType ReservedProprietaryExtByteRangeType"/>
	</xs:simpleType>
	<xs:simpleType name="GlobalStatusCodeLRType">
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="29"/>
		</xs:restriction>
	</xs:simpleType>
	<!--
		Specifies the type of TargetAddress Value
		0 - IPAddress
		1 - anyURI
		2 - IMSI
		3 -127: For Future Use
		128 - 255: For Proprietary Use
	-->
	<xs:simpleType name="AddressRangeType">
		<xs:union memberTypes="AddressLRType ReservedProprietaryExtByteRangeType"/>
	</xs:simpleType>
	<xs:simpleType name="AddressLRType">
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="2"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
