<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	Mobile Broadcast - Backend Messages - Stream Distribution
		version 	- 1.0
		date    	- 12 Feb 2009
		
    FILE INFORMATION

	OMA Permanent Document
	   File: OMA-SUP-XSD_bcast_sd_backend-V1_0-20090212-A 
	   Type: Text - Schema Description

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

    NORMATIVE INFORMATION

	Information about this file can be found in the specification
	    OMA-TS-BCAST_Distribution-V1_0
	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

	You may use this document or any part of the document for internal
	or educational purposes only, provided you do not modify, edit or
	take out of context the information in this document in any manner.
	Information contained in this document may be used, at your sole
	risk, for any purposes.

	You may not use this document in any other manner without the prior
	written permission of the Open Mobile Alliance.  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 2008 Open Mobile Alliance Ltd.  All Rights Reserved.
	Used with the permission of the Open Mobile Alliance Ltd. under the
	terms set forth above.
-->

<xs:schema xmlns="urn:oma:xml:bcast:sd:backend:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oma:xml:bcast:sd:backend:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!-- Importing xml default declarations (like xml:lang and xml:space) -->
	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	<!---
	============================
	StreamSessionCreation
	============================
	-->
	<xs:element name="StreamSessionCreation" type="StreamSessionCreationType">
		<xs:annotation>
			<xs:documentation>Specifies the Session Creation Message</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamSessionCreationType">
		<xs:sequence>
			<xs:element name="SDP" type="SDPType"/>
		</xs:sequence>
		<xs:attribute name="startTime" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="endTime" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="datarate" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="fecRrate" type="xs:decimal" use="optional"/>
	</xs:complexType>
	<!---
	============================
	StreamSessionCreationRes
	============================
	-->
	<xs:element name="StreamSessionCreationRes" type="StreamSessionCreationResType">
		<xs:annotation>
			<xs:documentation>Specifies the Response message for Session Creation Request. If an error occurs, then at least one Parameter element SHALL be present in the response.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamSessionCreationResType">
		<xs:sequence>
			<xs:element name="SessionInfo" type="SessionInfoType"/>
			<xs:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<xs:complexType name="SessionInfoType">
		<xs:annotation>
			<xs:documentation>Specifies the created session information</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SDP" type="SDPType" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="startTime" type="xs:unsignedInt" use="optional"/>
		<xs:attribute name="endTime" type="xs:unsignedInt" use="optional"/>
		<xs:attribute name="datarate" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="fecRrate" type="xs:decimal" use="optional"/>
	</xs:complexType>
	<xs:complexType name="ParameterType">
		<xs:annotation>
			<xs:documentation>If this element is present, it signals that there was an error w.r.t. to a parameter in the request.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="field" type="xs:string" use="optional"/>
		<xs:attribute name="reason" type="xs:unsignedByte" use="optional"/>
	</xs:complexType>
	<!---
	============================
	StreamSessionDeletion
	============================
	-->
	<xs:element name="StreamSessionDeletion" type="StreamSessionDeletionType">
		<xs:annotation>
			<xs:documentation>Specifies the Session Deletion Message</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamSessionDeletionType">
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="endTime" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<!---
	============================
	StreamSessionDeletionRes
	============================
	-->
	<xs:element name="StreamSessionDeletionRes" type="StreamSessionDeletionResType">
		<xs:annotation>
			<xs:documentation>Specifies the response message for Session Deletion</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamSessionDeletionResType">
		<xs:sequence>
			<xs:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<!---
	============================
	StreamInsertion
	============================
	-->
	<xs:element name="StreamInsertion" type="StreamInsertionType">
		<xs:annotation>
			<xs:documentation>Specifies the Stream Insertion Message</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamInsertionType">
		<xs:sequence>
			<xs:element name="StreamInfo">
				<xs:complexType>
					<xs:attribute name="ipAddress" type="xs:string" use="required"/>
					<xs:attribute name="portNumber" type="xs:unsignedShort" use="required"/>
				</xs:complexType>
			</xs:element>
			<xs:element name="SDP" type="SDPType"/>
		</xs:sequence>
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="startTime" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="endTime" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<!---
	============================
	StreamInsertionRes
	============================
	-->
	<xs:element name="StreamInsertionRes" type="StreamInsertionResType">
		<xs:annotation>
			<xs:documentation>Specifies the response message for Stream Insertion</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamInsertionResType">
		<xs:sequence>
			<xs:element name="StreamInformation" maxOccurs="unbounded">
				<xs:complexType>
					<xs:attribute name="ipAddress" type="xs:string" use="required"/>
					<xs:attribute name="portNumber" type="xs:unsignedShort" use="required"/>
					<xs:attribute name="startTime" type="xs:unsignedInt" use="required"/>
					<xs:attribute name="endTime" type="xs:unsignedInt" use="required"/>
				</xs:complexType>
			</xs:element>
			<xs:element name="SDP" type="SDPType" minOccurs="0"/>
			<xs:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="streamID" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<!---
	============================
	StreamRemoval
	============================
	-->
	<xs:element name="StreamRemoval" type="StreamRemovalType">
		<xs:annotation>
			<xs:documentation>Specifies the Stream Removal Message</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamRemovalType">
		<xs:attribute name="sessionID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="streamID" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="endTime" type="xs:unsignedInt" use="required"/>
	</xs:complexType>
	<!---
	============================
	StreamRemovalRes
	============================
	-->
	<xs:element name="StreamRemovalRes" type="StreamRemovalResType">
		<xs:annotation>
			<xs:documentation>Specifies the response message for Stream Removal</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="StreamRemovalResType">
		<xs:sequence>
			<xs:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 
	====================================================================
	A session description in SDP (IETF session description protocol) format 
	====================================================================
	-->
	<xs:complexType name="SDPType">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute ref="xml:space" fixed="preserve"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
</xs:schema>
