﻿<?xml version="1.0" ?>
<!-- 
Copyright Notice 
(c) 2001-2008 International Business Machines Corporation, and Microsoft Corporation. 
All rights reserved. 

IBM and Microsoft (the “Authors”) hereby grant permission to copy and display the 
"Application Note: Web Services Addressing Endpoint References and Identity" Document 
(the "Document") in any medium without fee or royalty, provided that you include the 
following on ALL copies of the Document: 

1. A link or URL to the Document at one of the Authors’ websites; 
2. The copyright notice as shown in the Document. 

IBM and Microsoft (collectively, the "Authors") each agree to grant you a license, 
under royalty-free and otherwise reasonable, non-discriminatory terms and conditions, 
to their respective essential patent claims that they deem necessary to implement t
he Document.

THE DOCUMENT IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS OR WARRANTIES, 
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS 
FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT 
ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT 
INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS, OR OTHER RIGHTS. The information 
in the Document stands alone and may not be deemed a part of, nor to modify, any S
pecification. 

THE AUTHORS ARE NOT LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 
DAMAGES ARISING OUT OF OR RELATING TO ANY USE OR DISTRIBUTION OF THE DOCUMENT. 

The names and trademarks of the Authors may NOT be used in any manner, including advertising 
or publicity pertaining to the Document or its contents, without specific written permission, 
obtained in advance. Title to copyright in the Document at all times remains with the 
Authors. 

No other rights are granted by implication, estoppel, or otherwise.
-->
<xs:schema targetNamespace='http://schemas.xmlsoap.org/ws/2006/02/addressingidentity'
           xmlns:tns='http://schemas.xmlsoap.org/ws/2006/02/addressingidentity'
           xmlns:xs='http://www.w3.org/2001/XMLSchema'
           xmlns:ds='http://www.w3.org/2000/09/xmldsig#'
           xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
           elementFormDefault='qualified' >
  <xs:import namespace='http://www.w3.org/2000/09/xmldsig#'
         schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd' />
  <xs:import namespace='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
			 schemaLocation='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' />
  
  <!-- Section 2.0 -->
  <xs:element name='Identity' type='tns:IdentityType'/>
  <xs:complexType name='IdentityType'>
    <xs:sequence>
      <xs:choice minOccurs='1' maxOccurs='unbounded'>
        <xs:element ref="tns:Dns" minOccurs='0' maxOccurs='1'/>
        <xs:element ref="tns:Spn" minOccurs='0' maxOccurs='1'/>
        <xs:element ref="tns:Upn" minOccurs='0' maxOccurs='1'/>
        <xs:element ref="ds:KeyInfo" minOccurs='0' maxOccurs='1'/>
        <xs:element ref="wsse:BinarySecurityToken" minOccurs='0' maxOccurs='1'/>
        <xs:element ref="wsse:SecurityTokenReference" minOccurs='0' maxOccurs='1'/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>

  <!-- Section 3.1 -->
  <xs:element name="Dns" type="xs:string" />
  <!-- Section 3.2 -->
  <xs:element name="Spn" type="xs:string" />
  <!-- Section 3.3 -->
  <xs:element name="Upn" type="xs:string" />
  
</xs:schema>
