<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.2+WSDL//EN" "xmlspec.dtd">
<!--
/*
 * Copyright © 2006 World Wide Web Consortium,
 *
 * (Massachusetts Institute of Technology, European Research Consortium for
 * Informatics and Mathematics, Keio University). All Rights Reserved. This
 * work is distributed under the W3C® Document License [1] in the hope that
 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231
 */
    -->
<?xml-stylesheet type='text/xsl' href='xmlspec-wsdl.xsl'?><spec xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:z="http://www.w3.org/2004/zml" w3c-doctype="cr" role="public">
	<header>
		<title>Web Services Description Language (WSDL) Version 2.0 Part 0: Primer</title>
		<w3c-designation>http://www.w3.org/TR/2006/CR-wsdl20-primer-20060327</w3c-designation>
		<w3c-doctype>W3C Candidate Recommendation</w3c-doctype>
		<pubdate>
			<day>27</day>
			<month>March</month>
			<year>2006</year>
		</pubdate>
		<publoc>
			<loc href="http://www.w3.org/TR/2006/CR-wsdl20-primer-20060327" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/TR/2006/CR-wsdl20-primer-20060327</loc>
		</publoc>
		<altlocs>
	<loc role="pdf" href="wsdl20-primer.pdf" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">PDF</loc>
	<loc role="postscript" href="wsdl20-primer.ps" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">PostScript</loc>
	<loc role="xml" href="wsdl20-primer.xml" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">XML</loc>
	<loc role="plain" href="wsdl20-primer.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">plain text</loc>
    </altlocs>
    <prevlocs>
    <loc href="http://www.w3.org/TR/2006/CR-wsdl20-primer-20060106" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/TR/2006/CR-wsdl20-primer-20060106</loc>
  </prevlocs>
		<latestloc>
			<loc href="http://www.w3.org/TR/wsdl20-primer" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/TR/wsdl20-primer</loc>
		</latestloc>
		<authlist>
			<author>
				<name>David Booth</name>
				<affiliation>W3C Fellow / Hewlett-Packard</affiliation>
			</author>
			<author>
				<name>Canyang Kevin Liu</name>
				<affiliation>SAP Labs</affiliation>
			</author>
		</authlist>
		<abstract id="Abstract">
			<p>
				This document is a companion to the WSDL 2.0
				specification (<emph>Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language</emph>
				<bibref ref="WSDL-PART1"/>,
				<emph>Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts</emph>
				<bibref ref="WSDL-PART2"/>). It is intended for readers who wish to have an
				easier, less technical introduction to the main features
				of the language.
			</p>
			<p>
				This primer is only intended to be a starting point
				toward use of WSDL 2.0, and hence does not describe
				every feature of the language. Users are expected to
				consult the WSDL 2.0 specification if they wish to make
				use of more sophisticated features or techniques.
			</p>
			<p>
				Finally, this primer is
				<emph>non-normative</emph>.
				Any specific questions of what WSDL 2.0 requires or
				forbids should be referred to the WSDL 2.0
				specification.
			</p>
		</abstract>
		
<status id="Status">

  <p>
    <emph>This section describes the status of this document at the time
    of its publication. Other documents may supersede this document. A
    list of current W3C publications and the latest revision of this
    technical report can be found in the <loc href="http://www.w3.org/TR/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C technical reports index</loc> at
    http://www.w3.org/TR/.</emph>
  </p>

   <p>
      This is an updated version of the <loc href="http://www.w3.org/2005/10/Process-20051014/tr.html#RecsCR" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C
      Candidate Recommendation</loc> of Web Services Description Language (WSDL) Version 2.0 Part 0: Primer for
      review by W3C Members and other interested parties. It has been
      produced by the <loc href="http://www.w3.org/2002/ws/desc/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Web
      Services Description Working Group</loc>, which is part of the
      <loc href="http://www.w3.org/2002/ws/Activity" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C Web Services
      Activity</loc>. The publication of this document signifies a <loc href="http://www.w3.org/2005/10/Process-20051014/tr.html#cfi" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">call
      for implementations</loc> of this specification.
      The Candidate Recommendation period specified in the previous
      draft (15 March 2006) has passed.  The Working Group does not
      anticipate garnering enough implementation experience to fulfill
      its Candidate Recommendation exit criteria until at least 1 July
      2006.
   </p>

    <p>
      This version addresses the modest number of comments received to
      date on the Candidate Recommendation of Web Services Description Language (WSDL) Version 2.0 Part 0: Primer. The
      detailed disposition of the comments received can be found in
      the <loc href="http://www.w3.org/2002/ws/desc/5/cr-issues/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Candidate
      Recommendation issues list</loc>.  A <loc href="wsdl20-primer-diff.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">diff-marked version against the
      previous version of this document</loc> is available.
    </p>

    <p>If the feedback is positive, the Working Group
      plans to submit this specification for consideration as a <loc href="http://www.w3.org/2005/10/Process-20051014/tr.html#RecsPR" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C
      Proposed Recommendation</loc> along with the rest of the WSDL 2.0
      documents for which an <loc href="http://www.w3.org/2002/ws/desc/5/impl-report/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">implementation report</loc>
      is available.</p>

    <p>Implementers are invited to <loc href="http://www.w3.org/2005/10/Process-20051014/tr.html#cfi" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">send feedback</loc> on this document to the public <loc href="mailto:public-ws-desc-comments@w3.org" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public-ws-desc-comments@w3.org</loc>
      mailing list (<loc href="http://lists.w3.org/Archives/Public/public-ws-desc-comments/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public
      archive</loc>).
    </p>

    <p>
    Issues about this document are recorded in the <loc href="http://www.w3.org/2002/ws/desc/5/cr-issues/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Candidate Recommendation
    issues list</loc> maintained by the Working Group. A list of <loc href="http://www.w3.org/2002/ws/desc/5/07/objections.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">formal
    objections</loc> against the set of WSDL 2.0 Working Drafts is
    also available.
    </p>

    <!-- Boilerplate -->

    <p>
      Publication as a Candidate Recommendation does not imply endorsement by the W3C
      Membership. This is a draft document and may be updated, replaced or
      obsoleted by other documents at any time. It is inappropriate to
      cite this document as other than work in progress.
    </p>

    <p>
      This document was produced by a group operating under the <loc href="http://www.w3.org/TR/2002/NOTE-patent-practice-20020124" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">24
      January 2002 CPP</loc> as amended by the <loc href="http://www.w3.org/2004/02/05-pp-transition" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C Patent
      Policy Transition Procedure</loc>. W3C maintains a <loc rel="disclosure" href="http://www.w3.org/2002/ws/desc/2/04/24-IPR-statements.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public
      list of any patent disclosures</loc> made in connection with the
      deliverables of the group; that page also includes instructions
      for disclosing a patent. An individual who has actual knowledge
      of a patent which the individual believes contains <loc href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Essential
      Claim(s)</loc> must disclose the information in accordance with <loc href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">section
      6 of the W3C Patent Policy</loc>.
    </p>

</status>

    <langusage>
			<language id="en">English</language>
		</langusage>
		<revisiondesc>
		  <p>$Date: 2006/03/27 17:05:15 $</p>
		</revisiondesc>
	</header>
	<body>
		<!-- ****************Introduction********************************* -->
		<div1 id="Introduction">
			<head>Introduction</head>			
                    <div2 id="Prerequisites"><head>Prerequisites</head>
			<p>This primer assumes that the reader has the following prerequisite knowledge:
			<ulist><item><p> familiarity with XML (<emph>Extensible Markup Language (XML) 1.0 (Second Edition)</emph> <bibref ref="XML10"/>, <emph>XML Information Set</emph> <bibref ref="XMLInfoSet"/>) and  XML Namespaces (<emph>Namespaces in XML</emph> <bibref ref="XMLNS"/>);</p></item><item><p>some familiarity with XML Schema (<emph>XML Schema Part 1: Structures</emph>  <bibref ref="XMLSchemaP1"/>  <emph>XML Schema Part 2: Datatypes</emph> <bibref ref="XMLSchemaP2"/>);</p></item>
			<item><p> familiarity with basic Web services concepts such as Web service, client, and the purpose and function of a  Web service description.  (For an explanation of basic Web services concepts, see   <emph>Web Services Architecture</emph> <bibref ref="wsarch"/>  <xspecref href="http://www.w3.org/TR/2004/NOTE-ws-arch-20040211/#whatis" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Section 1.4</xspecref> and <emph>Web Services Glossary</emph> <bibref ref="WSAGLOSS"/> <xspecref href="http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">glossary</xspecref>.   However, note the <emph>Web Services Architecture</emph>  document uses the slightly more precise terms "<xspecref href="http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/#requesteragent" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">requester agent</xspecref>" and "<xspecref href="http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/#provideragent" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">provider agent</xspecref>" instead of the terms "client" and "Web service" used in this primer.)</p>
			</item>
			</ulist>
			No previous experience with WSDL is assumed.</p></div2>
			<div2 id="PrimerStructure">
				<head>Structure of this Primer</head>
				
				
				
				<p>Section 2 starts with a hypothetical use case involving a hotel reservation service.  It proceeds step-by-step through the development of a simple example WSDL 2.0 document that describes this service:<ulist><item><p>The   <code>types</code>  element describes the kinds of messages that the service will send and receive.  </p></item><item><p>The <code>interface</code> element describes <emph>what</emph>  abstract functionality the Web service provides.   </p></item><item><p>The <code>binding</code> element describes <emph>how</emph> to access the service. </p></item><item><p>The <code>service</code> element describes <emph>where</emph> to access the service.</p></item></ulist></p>
				<p>After presenting the example, it moves on to introduce the WSDL 2.0 infoset, schema, and component model. Then it provides more detailed coverage on defining message types, interfaces, bindings, and services.</p>
				
				<p>Section 3 explains the WSDL 2.0 importing mechanisms in great details.</p>
				
				<p>Section 4 talks about WSDL 2.0 extensibility and various predefined extensions. </p>
				
				<p>Section 5 covers various topics that may fall outside the scope of WSDL 2.0, but shall provide useful background and best practice guidances that may be useful when authoring a WSDL 2.0 document or implementing the WSDL 2.0 specification.
</p>
				

			</div2>
			
						<div2 id="UseIRI">
				<head>Use of URI and IRI</head>
				
				<p>The core specification of WSDL 2.0 supports Internationalized Resource Identifiers or IRIs <bibref ref="RFC3987"/>.  IRIs are a superset of URIs with added support for internationalization. The URI syntax <bibref ref="RFC3986"/> only allows the use of  a small set of characters, including upper and lower case letters of the English alphabet, European numerals and a few symbols. IRIs  allow the use of characters from a wider range of language scripts. </p>
 
<p>For simplicity, examples throughout this primer only use URIs.  If you are interested in learning more about the use of IRIs, you might care to read the <xspecref href="http://www.w3.org/International/articles/idn-and-iri/" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">paper</xspecref> prepared by the <xspecref href="http://www.w3.org/International/" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">W3C Internationalization Activity</xspecref>. 					
</p>
				

			</div2>
			
			
			<div2 id="notation">
				<head>Notational Conventions</head>
				<p>This document uses several XML namespaces, some of which are defined by standards, and some are application-specific.  Namespace names of the general form
   <attval>http://greath.example.com/...</attval> represent application or
   context-dependent URIs <bibref ref="RFC3986"/>.Note also that the choice of
   any namespace prefix is arbitrary and not semantically significant
   (see <bibref ref="XMLInfoSet"/>). </p>
   
   <p>Following the convention for XML syntax summary in <bibref ref="WSDL-PART1"/>, this primer uses an informal syntax to describe the XML grammar of a WSDL 2.0 document: 
   <ulist>
   <item><p>The syntax appears as an XML instance, but the values indicate the data types instead of values.</p></item> 
   <item><p>Characters are appended to elements and attributes as follows: "?" (0 or 1), "*" (0 or more), "+" (1 or more).</p></item> 
<item><p>Elements names ending in "…"  indicate that elements/attributes irrelevant to the context are being omitted.</p> </item>
   </ulist>
   
   </p>
			</div2>
			
			
		</div1>

		<!-- ****************WSL2.0 BASICS********************************* -->
		<!-- ****************WSL2.0 BASICS********************************* -->
		<div1 id="basics">
			<head>WSDL 2.0 Basics</head>
			
			<div2 id="basic-example"><head>Getting Started: The GreatH Hotel Example</head>
			<p>This section introduces the basic concepts used in WSDL 2.0 through the description of a hypothetical hotel reservation service. We start with a simple scenario, and later add more requirements to illustrate how more advanced WSDL 2.0 features may be used. </p>

			<!-- ************************ GreatH *************************** --><div3 id="basics-greath-scenario"><head>Example Scenario: The GreatH Hotel Reservation Service</head><p>Hotel GreatH (a fictional hotel) is located in a remote island. It has been relying on fax and phone to provide room reservations. Even though the facilities and prices at GreatH are better than what its competitor offers, GreatH notices that its competitor is getting more customers than GreatH.   After research, GreatH realizes that this is because the  competitor offers a Web service that permits travel agent reservation systems to reserve rooms directly over the Internet.  GreatH then hires us to build a reservation Web service with the following functionality:  <ulist><item><p><emph>CheckAvailability</emph>. To check availability, the client must specify a check-in date, a check-out date, and room type.  The Web service will return a room rate (a floating point number in USD$) if such a room is available, or a zero room rate if not. If any input data is invalid, the service should return an error.  Thus, the service will accept a <code>checkAvailability</code> message and return a <code>checkAvailabilityResponse</code> or <code>invalidDataFault</code> message.</p>  </item><item><p><emph>MakeReservation</emph>.  To make a reservation, a client must provide a name, address, and credit card information, and the service will return a confirmation number if the reservation is successful.  The service will return an error message if the credit card number or any other data field is invalid.  Thus, the service will accept a <code>makeReservation</code> message and return a <code>makeReservationResponse</code> or <code>invalidCreditCardFault</code> message.</p></item></ulist> We know that we will later need to build a complete system that supports transactions and secured transmission, but initially we will implement only minimal functionality.  In fact, to simplify our first example, we will implement only the <emph>CheckAvailability</emph> operation.  </p><p>The next several sections proceed step-by-step through the process of developing a WSDL 2.0 document that describes the desired Web service.  However, for those who can't wait to see a complete example, here is the WSDL 2.0 document that we'll be creating.</p><example id="example-initial">
					<head>WSDL 2.0 Document for the GreatH Web Service (Initial Example)</head>
					<eg xml:space="preserve">
&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    xmlns:wsoap= "http://www.w3.org/2006/01/wsdl/soap"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsdlx= "http://www.w3.org/2006/01/wsdl-extensions"&gt;

  &lt;documentation&gt;
    This document describes the GreatH Web service.  Additional 
    application-level requirements for use of this service -- 
    beyond what WSDL 2.0 is able to describe -- are available 
    at http://greath.example.com/2004/reservation-documentation.html
  &lt;/documentation&gt;

  &lt;types&gt;
    &lt;xs:schema 
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://greath.example.com/2004/schemas/resSvc"
        xmlns="http://greath.example.com/2004/schemas/resSvc"&gt;

      &lt;xs:element name="checkAvailability" type="tCheckAvailability"/&gt;    
      &lt;xs:complexType name="tCheckAvailability"&gt;     
        &lt;xs:sequence&gt;      
          &lt;xs:element  name="checkInDate" type="xs:date"/&gt;      
          &lt;xs:element  name="checkOutDate" type="xs:date"/&gt;      
          &lt;xs:element  name="roomType" type="xs:string"/&gt;      
        &lt;/xs:sequence&gt;     
      &lt;/xs:complexType&gt;   
            
      &lt;xs:element name="checkAvailabilityResponse" type="xs:double"/&gt;    
    
      &lt;xs:element name="invalidDataError" type="xs:string"/&gt;    

    &lt;/xs:schema&gt;    
  &lt;/types&gt;
  
  &lt;interface  name = "reservationInterface" &gt;

    &lt;fault name = "invalidDataFault"
            element = "ghns:invalidDataError"/&gt; 
   
    &lt;operation name="opCheckAvailability" 
            pattern="http://www.w3.org/2006/01/wsdl/in-out" 
            style="http://www.w3.org/2006/01/wsdl/style/iri"
            wsdlx:safe = "true"&gt;
        &lt;input messageLabel="In" 
              element="ghns:checkAvailability" /&gt;
        &lt;output messageLabel="Out" 
              element="ghns:checkAvailabilityResponse" /&gt;
        &lt;outfault ref="tns:invalidDataFault" messageLabel="Out"/&gt;
    &lt;/operation&gt;

  &lt;/interface&gt;

  &lt;binding name="reservationSOAPBinding" 
	  interface="tns:reservationInterface"
	  type="http://www.w3.org/2006/01/wsdl/soap"
	  wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;
 
    &lt;fault ref="tns:invalidDataFault" 
      wsoap:code="soap:Sender"/&gt;

    &lt;operation ref="tns:opCheckAvailability" 
      wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/&gt;

  &lt;/binding&gt;

  &lt;service name="reservationService" 
       interface="tns:reservationInterface"&gt;

     &lt;endpoint name="reservationEndpoint" 
               binding="tns:reservationSOAPBinding"
               address ="http://greath.example.com/2004/reservation"/&gt;
        
  &lt;/service&gt;

&lt;/description&gt;</eg>
				</example>
				

</div3>

<div3 id="basics-getting-started"><head>Defining a WSDL 2.0 Target Namespace</head><p>Before writing our WSDL 2.0 document, we need to decide on a <emph>WSDL 2.0 target namespace</emph> URI for it.  The WSDL 2.0 target namespace is analogous to an XML Schema target namespace. Interface, binding and service names that we define in our WSDL 2.0 document will be associated with the WSDL 2.0 target namespace, and thus will be distinguishable from similar names in a different WSDL 2.0 target namespace.  (This will become important if using WSDL 2.0's import or interface inheritance mechanisms.)  </p><p>The value of the  WSDL 2.0  target namespace must be an absolute URI.  Furthermore, it should be dereferenceable to a WSDL 2.0 document that describes the Web service that the WSDL 2.0 target namespace is used to describe.  For example, the GreatH owners should make the WSDL 2.0 document available from this URI.  (And if a WSDL 2.0 description is split into multiple documents, then the WSDL 2.0 target namespace should resolve to a master document that includes all the WSDL 2.0 documents needed for that service description.)  However, there is no absolute requirement for this URI to be dereferenceable, so a WSDL 2.0 processor must not depend on it being dereferenceable.  </p><p>This recommendation may sound circular, but bear in mind that the client might have obtained the WSDL 2.0 document from anywhere -- not necessarily an authoritative source.  But by dereferencing the WSDL 2.0 target namespace URI, a user  should be able to obtain an authoritative version.  Since GreatH will be the owner of the service, the WSDL 2.0 target namespace URI should refer to a location on  the GreatH Web site or otherwise within its control.</p><p>Once we have decided on a WSDL 2.0 target namespace URI, we can begin our WSDL 2.0 document as the following empty shell.</p><example id="example-empty-shell">
					<head>An Initial Empty WSDL 2.0 Document</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    . . . &gt;

  . . .
&lt;/description&gt;</eg>
				</example><div4 id="example-empty-shell-explanation"><head>Explanation of Example</head><p><glist><gitem><label><code>&lt;description</code></label><def><p>Every WSDL 2.0 document has a <code>description</code> element as its top-most element.  This merely acts as a container for the rest of the WSDL 2.0 document, and is used to declare namespaces that will be used throughout the document.</p></def></gitem><gitem><label><code>xmlns="http://www.w3.org/2006/01/wsdl"</code></label>
				<def>
					<p>
						This is the XML namespace for WSDL 2.0 itself. We assign it as the default namespace for this example by not defining a prefix for it. In other words, any unprefixed elements in this example are expected to be WSDL 2.0 elements (such as the <code>description</code> element).
					</p>
				</def>
</gitem><gitem><label><code>targetNamespace= "http://greath.example.com/2004/wsdl/resSvc"</code></label><def><p>This defines the WSDL 2.0 target namespace that we have chosen for the GreatH reservation service, as described above.  Note that this is not an actual XML namespace declaration.  Rather, it is a WSDL 2.0 attribute whose purpose is <emph>analogous</emph> to an XML Schema target namespace.</p></def></gitem><gitem><label><code>xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"</code></label><def><p>This is an actual XML namespace declaration for use in our GreatH service description.  Note that this is the same URI that was specified above as the value of  the <att>targetNamespace</att> attribute.   This will allow us later to use the  <code>tns:</code>   prefix in QNames, to refer to the WSDL 2.0 target namespace of the GreatH service.  (For more on QNames see <bibref ref="XMLNS"/>   section 3 <xspecref href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-qualnames" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Qualified Names</xspecref>.)</p></def></gitem></glist></p><p>  Now  we can start describing the GreatH service. </p></div4></div3>

<div3 id="basics-types"><head>Defining Message Types</head><p>We know that the GreatH service will be sending and receiving messages, so a good starting point in describing the service is to define the message types that the service will use.  We'll use XML Schema to do so, because WSDL 2.0 processors are likely to support XML Schema at a minimum.  However, WSDL 2.0 does not prohibit the use of some other schema definition language.</p><p>WSDL 2.0 allows message types to be defined directly within the WSDL 2.0 document, inside the <code>types</code> element, which is a child of the <code>description</code> element.   (Later we'll see how we can provide the type definitions in a separate document, using XML Schema's <code>import</code> mechanism.)    The following schema defines <code>checkAvailability</code>, <code>checkAvailabilityResponse</code> and <code>invalidDataError</code> message types that we'll need.  </p><p>In WSDL 2.0, all normal and fault message types must be defined as single <emph>elements</emph> at the topmost level (though of course each element may have any amount of substructure inside it).  Thus, a message type must not directly consist of a sequence of elements or other complex type.  </p><example id="example-initial-types">
					<head>GreatH Message Types</head>
					<eg xml:space="preserve">
&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    . . . &gt;

  ...

  &lt;types&gt;
    &lt;xs:schema 
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://greath.example.com/2004/schemas/resSvc"
        xmlns="http://greath.example.com/2004/schemas/resSvc"&gt;

      &lt;xs:element name="checkAvailability" type="tCheckAvailability"/&gt;    
      &lt;xs:complexType name="tCheckAvailability"&gt;     
        &lt;xs:sequence&gt;      
          &lt;xs:element  name="checkInDate" type="xs:date"/&gt;      
          &lt;xs:element  name="checkOutDate" type="xs:date"/&gt;      
          &lt;xs:element  name="roomType" type="xs:string"/&gt;      
        &lt;/xs:sequence&gt;     
      &lt;/xs:complexType&gt;   
            
      &lt;xs:element name="checkAvailabilityResponse" type="xs:double"/&gt;    
    
      &lt;xs:element name="invalidDataError" type="xs:string"/&gt;    

    &lt;/xs:schema&gt;    
  &lt;/types&gt;
  . . .
&lt;/description&gt;</eg>
				</example><div4 id="example-initial-types-explanation"><head>Explanation of Example</head><glist><gitem><label><code>xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"</code></label><def><p>We've added another namespace declaration.  The <code>ghns</code> namespace prefix will allow us (later, when defining an interface) to reference the XML Schema target namespace that we define for our message types.  Thus, the URI we specify must be the same as the URI  that we define as the target namespace of our XML Schema types (below) -- <emph>not</emph> the target namespace of the WSDL 2.0 document itself.</p></def></gitem><gitem><label><code>targetNamespace="http://greath.example.com/2004/schemas/resSvc"</code></label><def><p>This is the XML Schema target namespace that we've created for  use by the GreatH reservation service.  The <code>checkAvailability</code>, <code>checkAvailabilityResponse</code> and <code>invalidDataError</code> element names will be associated with this XML Schema target namespace.</p></def></gitem><gitem><label><code>checkAvailability</code>, <code>checkAvailabilityResponse</code> and <code>invalidDataError</code></label><def><p>These are the message types that we'll use.  Note that these are defined to be XML <emph>elements</emph>, as explained above.</p></def></gitem></glist><p>Although we have defined several types, we have not yet indicated which ones are to be used as message types for a Web service.  We'll do that in the next section.  </p></div4></div3>
				
				<div3 id="basics-interface"><head>Defining an Interface</head><p>WSDL 2.0 enables one to separate the description of a Web service's abstract functionality from the concrete details of how and where that functionality is offered.    This separation facilitates different levels of reusability and distribution of work in the lifecycle of a Web service and the WSDL 2.0 document that describes it. </p><p>A WSDL 2.0 <code>interface</code> defines the abstract interface of a Web service as a set of abstract <emph>operations</emph>, each operation representing a simple interaction between the client and the service.  Each operation specifies the types of messages that the service can send or receive as part of that operation.  Each operation also specifies a message exchange <emph>pattern</emph> that indicates the sequence in which the associated messages are to be transmitted between the parties.   For example, the <emph>in-out</emph> pattern (see <emph>WSDL 2.0 Predefined Extensions</emph> <bibref ref="WSDL-PART2"/> section  2.2.3 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">In-Out</xspecref>) indicates that if the client sends a message <emph>in</emph> to the service, the service will either send a reply message back <emph>out</emph> to the client (in the normal case) or it will send a fault message back to the client (in the case of an error). We will explain more about message exchange <emph>pattern</emph>s in <specref ref="more-interfaces-meps"/></p>
				
				<p>For the GreatH service, we will (initially) define an interface containing a single operation, <code>opCheckAvailability</code>, using  the <code>checkAvailability</code> and <code>checkAvailabilityResponse</code> message types that we defined in the <code>types</code> section.   We'll use the <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-out</xspecref> pattern for this operation, because this is the most natural way to represent a simple request-response interaction.  We could have instead (for example) defined two separate operations using the <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-only</xspecref> and <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#out-only" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">out-only</xspecref> patterns (see <emph>WSDL 2.0 Predefined Extensions</emph> <bibref ref="WSDL-PART2"/> section  2.2.1 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-only" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">In-Only</xspecref> and section  2.2.5 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#out-only" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Out-Only</xspecref>), but that would just complicate matters for the client, because we would then have to separately indicate to the client developer that the two operations should be used together as a request-response pair.</p><p>In addition to the normal input and output messages, we also need to specify the fault message that we wish to use in the event of an error.  WSDL 2.0 permits fault messages to be declared within the <code>interface</code> element in order to facilitate reuse of faults across operations.   If a fault occurs, it terminates whatever message sequence was indicated by the message exchange pattern of the operation.  </p><p>Let's add these to our WSDL 2.0 document.</p><example id="example-initial-interface">
					<head>GreatH Interface Definition</head>
					
				<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    . . . 
    xmlns:wsdlx="http://www.w3.org/2006/01/wsdl-extensions"&gt;

  . . .
  &lt;types&gt;
	...
  &lt;/types&gt;
  
  &lt;interface  name = "reservationInterface" &gt;

    &lt;fault name = "invalidDataFault"
            element = "ghns:invalidDataError"/&gt; 
   
    &lt;operation name="opCheckAvailability" 
            pattern="http://www.w3.org/2006/01/wsdl/in-out"
            style="http://www.w3.org/2006/01/wsdl/style/iri"
            wsdlx:safe = "true"&gt;
        &lt;input messageLabel="In" 
              element="ghns:checkAvailability" /&gt;
        &lt;output messageLabel="Out" 
              element="ghns:checkAvailabilityResponse" /&gt;
        &lt;outfault ref="tns:invalidDataFault" messageLabel="Out"/&gt;
    &lt;/operation&gt;

  &lt;/interface&gt;

  . . .
&lt;/description&gt;</eg></example><div4 id="example-initial-interface-explanation"><head>Explanation of Example</head><glist><gitem><label><code>&lt;interface  name = "reservationInterface" &gt;</code></label><def><p>Interfaces are declared directly inside the <code>description</code> element.  In this example, we are declaring only one interface, but in general a WSDL 2.0 document may declare more than one interface.  Thus, each interface must be given a name that is unique within the set of interfaces defined in this WSDL 2.0 target namespace.   Interface names are tokens that must not contain a space or colon (":").</p></def></gitem><gitem><label><code>&lt;fault name = "invalidDataFault"
            </code></label><def><p>The <code>name</code> attribute defines a name for this fault.  The name is required so that when an operation is defined, it can reference the desired fault by name.  Fault names must be unique within an interface.</p></def></gitem><gitem><label><code>element = "ghns:invalidDataError"/&gt;</code></label><def><p>The <code>element</code> attribute specifies the schema type of the fault message, as previously defined in the <code>types</code> section.   </p></def></gitem><gitem><label><code>&lt;operation name="opCheckAvailability"</code></label><def><p>The <code>name</code> attribute defines a name for this operation, so that it can be referenced later when bindings are defined.  Operation names must also be unique within an interface.  (WSDL 2.0 uses separate symbol spaces for operation and fault names, so operation name "foo" is distinct from fault name "foo".)</p></def></gitem>
            
            <gitem><label><code>pattern="http://www.w3.org/2006/01/wsdl/in-out" </code></label><def><p>This line specifies that this operation will use the <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-out</xspecref> pattern as described above.  WSDL 2.0 uses URIs to identify message exchange patterns in order to ensure that the identifiers are globally unambiguous, while also permitting future new patterns to be defined by anyone.  (However, just because someone defines a new pattern and creates a URI to identify it, that does <emph>not</emph> mean that other WSDL 2.0 processors will automatically recognize or understand that pattern.  As with any other extension, it can only be used among processors that <emph>do</emph> recognize and understand it.)</p></def></gitem>
	
	<gitem><label><code>style="http://www.w3.org/2006/01/wsdl/style/iri" </code></label><def><p>
	This line indicates that the XML schema defining the input message of this operation follows a set of rules as specified in <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#_operation_iri_style" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">IRI Style</xspecref> that ensures the message can be serialized as an IRI. 
	</p></def></gitem>
            
            <gitem><label><code>wsdlx:safe="true" &gt;</code></label><def><p>This line indicates that this operation will not obligate the client in any way, i.e., the client can safely invoke this operation without fear that it may be incurring an obligation (such as agreeing to buy something).  This is further explained in  <specref ref="more-interfaces-operations"/>.  </p></def></gitem><gitem><label><code>&lt;input messageLabel="In"</code></label><def><p>The <code>input</code> element specifies an input message.  Even though we have already specified which message exchange pattern the operation will use, a message exchange pattern represents a template for a message sequence, and in theory could  consist of multiple input and/or output messages.  Thus we must also indicate which potential input message in the pattern this particular input message represents.  This is the purpose of the <code>messageLabel</code> attribute.  Since the  <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-out</xspecref> pattern that we've chosen to use only has one input message, it is trivial in this case: we simply fill in the message label "In" that was defined in <emph>WSDL 2.0 Predefined Extensions</emph> <bibref ref="WSDL-PART2"/> section 2.2.3 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">In-Out</xspecref> for the <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-out</xspecref> pattern.  However, if a new pattern is defined that involve multiple input messages, then the different input messages in the pattern  could then be distinguished by using different labels.</p></def></gitem><gitem><label><code>element="ghns:checkAvailability" /&gt;</code></label><def><p>This specifies the message type for this input message, as defined previously in the <code>types</code> section.</p></def></gitem><gitem><label><code>&lt;output messageLabel="Out" . . .</code></label><def><p>This is similar to defining an input message.</p></def></gitem><gitem><label><code>&lt;outfault ref="tns:invalidDataFault" messageLabel="Out"/&gt;</code></label><def><p>This associates an output fault with this operation.  Faults are declared a little differently than normal messages.  The <code>ref</code> attribute refers to the name of a previously defined fault in this interface -- not a message schema type directly.  Since message exchange patterns could in general involve a sequence of several messages, a fault could potentially occur at various points within the message sequence.  Because one may wish to associate a different fault with each permitted point in the sequence, the <code>messageLabel</code> is used to indicate the desired point for this particular fault. It does so indirectly by specifying the message that will either trigger this fault or that this fault will replace, depending on the pattern.   (Some patterns use a <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#fault-trigger" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">message-triggers-fault rule</xspecref>; others use a <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#fault-replacement" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">fault-replaces-message</xspecref> rule.  See <emph>WSDL 2.0 Predefined Extensions</emph> <bibref ref="WSDL-PART2"/> section 2.1.2 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#fault-trigger" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Message Triggers Fault</xspecref> and section 2.1.1 <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#fault-replacement" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Fault Replaces Message</xspecref>.) </p></def></gitem></glist><p>Now that we've defined the abstract interface for the GreatH service, we're ready to define a binding for it.</p></div4></div3>

			
		<div3 id="basics-binding"><head>Defining a Binding</head>
			<p>
				Although we have specified
				<emph>what</emph>
				abstract messages can be exchanged with the GreatH Web
				service, we have not yet specified
				<emph>how</emph>
				those messages can be exchanged. This is the purpose of
				a
				<emph>binding</emph>. A binding specifies concrete message format and
				transmission protocol details for an interface, and must
				supply such details for every operation and fault in the
				interface.
			</p>
			<p>
				In the general case, binding details for each operation
				and fault are specified using
				<code>operation</code>
				and
				<code>fault</code>
				elements inside a
				<code>binding</code>
				element, as shown in the example below. However, in some
				cases it is possible to use defaulting rules to supply
				the information. The WSDL 2.0 SOAP binding extension, for example,
				defines some defaulting rules for operations. (See
				<emph>
					Web Services Description Language (WSDL) Version 2.0
					Part 2: Adjuncts
				</emph>
				<bibref ref="WSDL-PART2"/>, <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#soap-defaults" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Default Binding Rules</xspecref>.)
			</p>
			<p>
				In order to accommodate new kinds of message formats and
				transmission protocols, bindings are defined using
				extensions to the WSDL 2.0 language, via WSDL 2.0's open
				content model. (See
				<specref ref="adv-extensibility"/>
				for more on extensibility.) WSDL 2.0 Part 2
				<bibref ref="WSDL-PART2"/>
				defines binding extensions for SOAP 1.2
				<bibref ref="SOAP12-PART1"/>
				and HTTP 1.1
				<bibref ref="RFC2616"/>
				as predefined extensions, so that SOAP 1.2 or HTTP 1.1
				bindings can be easily defined in WSDL 2.0 documents.
				However, other specifications could define new binding
				extensions that could also be used to define bindings.
				(As with any extension, other WSDL 2.0 processors would have
				to know about the new constructs in order to make use of
				them.)
			</p>
			<p>For the GreatH service, we will use SOAP 1.2 as our concrete message format and HTTP as our  underlying transmission protocol, as shown below. </p><example id="example-initial-binding">
					<head>GreatH Binding Definition</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    xmlns:wsoap= "http://www.w3.org/2006/01/wsdl/soap"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
  . . .

  &lt;types&gt;
    . . .
  &lt;/types&gt;
  
  &lt;interface  name = "reservationInterface" &gt;
	...
  &lt;/interface&gt;

  &lt;binding name="reservationSOAPBinding" 
	  interface="tns:reservationInterface"
	  type="http://www.w3.org/2006/01/wsdl/soap"
	  wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

    &lt;operation ref="tns:opCheckAvailability" 
      wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/&gt;
  
    &lt;fault ref="tns:invalidDataFault" 
      wsoap:code="soap:Sender"/&gt;

  &lt;/binding&gt;

  . . .
&lt;/description&gt;</eg>
				</example><div4 id="example-initial-binding-explanation"><head>Explanation of Example</head><glist><gitem><label><code>xmlns:wsoap= "http://www.w3.org/2006/01/wsdl/soap"</code></label><def><p>We've added two more namespace declarations.  This one is the namespace for the SOAP 1.2 binding extension that is defined in WSDL 2.0 Part 3 <bibref ref="SOAP12-PART1"/>.   Elements and attributes prefixed with  <code>wsoap:</code>  are constructs defined there.  </p></def></gitem><gitem><label><code>xmlns:soap="http://www.w3.org/2003/05/soap-envelope"</code></label><def><p>This namespace is defined by the SOAP 1.2 specification itself.  The SOAP 1.2 specification defines certain terms within this namespace to unambiguously identify particular concepts.  Thus, we will use the <code>soap:</code> prefix when we need to refer to one of those terms.</p></def></gitem><gitem><label><code>&lt;binding name="reservationSOAPBinding"</code></label><def><p>Bindings are declared directly inside the <code>description</code> element.  The <att>name</att> attribute defines a name for this binding.  Each name must be unique among all  bindings in this WSDL 2.0 target namespace, and will be used later when we define a service endpoint that references this binding.  WSDL 2.0 uses separate symbol spaces for interfaces, bindings and services, so interface "foo", binding "foo" and service "foo" are all distinct. </p></def></gitem><gitem><label><code>interface="tns:reservationInterface"</code></label><def><p>This is the name of the interface whose message format and transmission protocols we are specifying.  As discussed in <specref ref="more-bindings"/>, a reusable binding can be defined by omitting the <att>interface</att> attribute.  Note also the use of the <code>tns:</code> prefix, which refers to the previously defined WSDL 2.0 target namespace for this WSDL 2.0 document.  In this case it may seem silly to have to specify the <code>tns:</code> prefix, but in <specref ref="adv-import-and-authoring"/>  we will see how WSDL 2.0's import mechanism can be used to combine components that are defined in different WSDL 2.0 target namespaces.</p></def></gitem><gitem><label><code>type="http://www.w3.org/2006/01/wsdl/soap"</code></label><def><p>This specifies what kind of concrete message format to use, in this case SOAP 1.2.</p></def></gitem><gitem><label><code>wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"</code></label><def><p>This attribute is specific to WSDL 2.0's SOAP binding extension (thus it uses the <code>wsoap:</code> prefix). It specifies the underlying transmission protocol that should be used, in this case HTTP.  </p></def></gitem><gitem><label><code>&lt;operation ref="tns:opCheckAvailability"</code></label><def>
	<p>
		This is not defining a new operation; rather, it is referencing the
		previously defined
		<code>opCheckAvailability</code>
		operation in order to specify binding details for it. This
		element can be omitted if defaulting rules are instead used to
		supply the necessary information. (See the SOAP binding extension in
		WSDL 2.0 Part 2 
		<bibref ref="WSDL-PART2"/>
		section 4.3
		<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#soap-defaults" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
			Default Binding Rules
		</xspecref>.)
	</p>
</def></gitem><gitem><label><code>wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"&gt;</code></label><def><p>This attribute is also specific to WSDL 2.0's SOAP binding extension.    It specifies the SOAP message exchange pattern (MEP) that will be used to implement the abstract WSDL 2.0  message exchange pattern (<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#in-out" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">in-out</xspecref>) that was specified when the <code>opCheckAvailability</code> operation was defined. </p>
<p>When HTTP is used as the underlying transport protocol (as in this example) the <code>wsoap:mep</code> attribute also controls whether GET or POST will be used as the underlying HTTP method. In this case, the use of <code>wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"</code> causes GET to be used by default. See  also  <specref ref="adv-get-vs-post"/>.</p></def></gitem><gitem><label><code>&lt;fault ref="tns:invalidDataFault"</code></label><def><p>As with a binding operation, this is not declaring a new fault; rather, it is referencing a fault (<code>invalidDataFault</code>) that was previously defined in the <code>opCheckAvailability</code> interface, in order to specify binding details for it.</p></def></gitem><gitem><label><code>wsoap:code="soap:Sender"/&gt;</code></label><def><p>This attribute is also specific to WSDL 2.0's SOAP binding extension.       This specifies the SOAP 1.2 fault code that will cause this fault message to be sent.   If desired, a list of subcodes can also be specified using the optional  <att>wsoap:subcodes</att> attribute.</p></def></gitem></glist></div4></div3>

<div3 id="basics-service"><head>Defining a Service</head><p>Now that our binding has specified <emph>how</emph> messages will be transmitted, we are ready to specify <emph>where</emph> the service can be accessed, by use of the <code>service</code> element.  </p><p>A WSDL 2.0 <emph>service</emph> specifies a single interface that the service will support, and  a list of <emph>endpoint</emph> locations where that service can be accessed.  Each endpoint must also reference a previously defined binding to indicate what protocols and transmission formats are to be used at that endpoint.  A service is only permitted to have one interface.   (See  <specref ref="adv-multiple-docs-describing-same-service"/> for further discussion of this limitation.) </p><p>Here is a definition for our GreatH service.</p><example id="example-initial-service">
					<head>GreatH Service Definition</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    xmlns="http://www.w3.org/2006/01/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    xmlns:wsoap= "http://www.w3.org/2006/01/wsdl/soap"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
  . . .

  &lt;types&gt;
    . . .
  &lt;/types&gt;
  
  &lt;interface  name = "reservationInterface" &gt;
    . . .
  &lt;/interface&gt;

  &lt;binding name="reservationSOAPBinding" 
	  interface="tns:reservationInterface"
        . . . &gt;
    . . .
  &lt;/binding&gt;

  &lt;service name="reservationService" 
       interface="tns:reservationInterface"&gt;

     &lt;endpoint name="reservationEndpoint" 
               binding="tns:reservationSOAPBinding"
               address ="http://greath.example.com/2004/reservation"/&gt;
        
  &lt;/service&gt;
  
&lt;/description&gt;</eg>
				</example><div4 id="example-initial-service-explanation"><head>Explanation of Example</head><glist><gitem><label><code>&lt;service name="reservationService"</code></label><def><p>This defines a name for this service, which must be unique among service names in the WSDL 2.0 target namespace.   The name attribute is required.  It allows URIs to be created that identify components in WSDL 2.0 description.  (See <emph>WSDL 2.0 Core Language</emph> <bibref ref="WSDL-PART1"/> appendix C <xspecref href="http://www.w3.org/TR/2004/WD-wsdl20-20040803/#wsdl-uri-references" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">URI References for WSDL 2.0 constructs</xspecref>.)</p></def></gitem><gitem><label><code>interface="tns:reservationInterface"&gt;</code></label><def><p>This specifies the name of the previously defined interface that these service endpoints will support.  </p></def></gitem><gitem><label><code>&lt;endpoint name="reservationEndpoint"</code></label><def><p>This defines an endpoint for the service, and a name for this endpoint, which must be unique within this service.  </p></def></gitem><gitem><label><code>binding="tns:reservationSOAPBinding"</code></label><def><p>This specifies the name of the previously defined binding to be used by this endpoint.  </p></def></gitem><gitem><label><code>address ="http://greath.example.com/2004/reservation"/&gt;</code></label><def><p>This specifies the physical address at which this service can be accessed using the binding specified by the <att>binding</att> attribute.</p></def></gitem></glist><p>That's it!  Well, almost.  </p></div4></div3>
				
				<div3 id="basics-documentation"><head>Documenting the Service</head><p>As we have seen, a WSDL 2.0 document is inherently only a <emph>partial</emph> description of a service.  Although it captures the basic mechanics of interacting with the service -- the message types, transmission protocols, service location, etc. -- in general, additional documentation will need to explain other application-level requirements for its use.  For example, such documentation should explain the purpose and use of the service, the meanings of all messages, constraints on their use, and the sequence in which operations should be invoked.</p><p>The <code>documentation</code> element allows the WSDL 2.0 author to include some human-readable documentation inside a WSDL 2.0 document.   It is also a convenient place to reference any additional external documentation that a client developer may need in order to use the service.   It can appear in a number of places in a WSDL 2.0 document (see <specref ref="wsdl-infoset-diagram"/>), though in this example we have only demonstrated its use at the beginning.</p><example id="example-initial-documentation">
					<head>Documenting the GreatH Service</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
    . . . &gt;

  &lt;documentation&gt;
    This document describes the GreatH Web service.  Additional 
    application-level requirements for use of this service -- 
    beyond what WSDL 2.0 is able to describe -- are available 
    at http://greath.example.com/2004/reservation-documentation.html
  &lt;/documentation&gt;
  . . .  
&lt;/description&gt;</eg>
				</example>
				
			<div4 id="example-initial-documentation-explanation"><head>Explanation of Example</head><glist><gitem><label><code>&lt;documentation&gt;</code></label><def><p>  This element is optional, but a good idea to include.    It can contain arbitrary mixed content.  </p></def></gitem><gitem><label><code>at http://greath.example.com/2004/reservation-documentation.html</code></label><def><p>The most important thing to  include is  a pointer to any additional documentation that a client developer would need in order to use the service. </p></def></gitem></glist>
<p>This completes our presentation of the GreatH example.  In the following sections, we will move on to look into more details of various aspects of WSDL 2.0 specification. </p></div4></div3>
</div2>


<!-- ****************WSL2.0 Infoset, Schema and Component Model********************************* -->
<!-- ****************WSL2.0 Infoset, Schema and Component Model********************************* -->
				
<div2 id="wsdl-xml-representation"><head>WSDL 2.0 Infoset, Schema and Component Model</head>

<p>In computer science theory, a  language consists of a (possibly infinite) set of sentences, and each sentence is a finite string of literal symbols or characters.  A language specification must therefore define the set sentences in that language,  and, to be useful,  it should also indicate the meaning of each sentence.   Indeed, this is the purpose of the WSDL 2.0 specification.</p><p>However, instead of defining WSDL 2.0 in terms of literal symbols or characters,  to avoid dependency on any particular character encoding, WSDL 2.0  is defined in terms of the <emph>XML Infoset</emph> <bibref ref="XMLInfoSet"/>.    Specifically, a <emph>WSDL 2.0 document</emph> consists of a <code>description</code> element information item (in the XML Infoset) that conforms to the WSDL 2.0 specification.  In other words, a sentence in the WSDL 2.0 language is a <code>description</code> element information item that obeys the additional constraints spelled out in  the WSDL 2.0 specification.</p><p>Since an XML Infoset can be created from more than one physical document, a WSDL 2.0 document does not necessarily correspond to a single <emph>physical</emph> document: the word "document" is used figuratively, for convenience.  Furthermore, since WSDL 2.0 provides <code>import</code> and <code>include</code> mechanisms, a WSDL 2.0 document may reference other WSDL 2.0 documents to facilitate convenient organization or reuse.   In such cases, the meaning of the including or importing document as a whole will depend (in part) on the meaning of the included or imported document.</p><p>The XML Infoset uses terms like "element information item" and "attribute information item".  Unfortunately, those terms are rather lengthy to repeat often.  Thus, for convenience, this primer often uses the terms "element" and "attribute" instead, as a shorthand.  It should be understood, however, that since WSDL 2.0 is based on the XML Infoset, we really mean "element information item" and "attribute information item", respectively.</p>

<div3 id="wsdl-infoset-diagram"><head>WSDL 2.0 Infoset</head>

<p>The following diagram gives an overview of  the XML Infoset for a WSDL 2.0 document.

<graphic source="images/WSDL20InfosetModel.png" alt="WSDL 2.0 Infoset Diagram" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>

</p>
</div3>

<div3 id="wsdl-schema">
<head>WSDL 2.0 Schema</head>

<p>The WSDL 2.0 specification supplies a <xspecref href="http://www.w3.org/2006/01/wsdl" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">normative WSDL 2.0 schema</xspecref>, defined in <bibref ref="XMLSchemaP1"/>, which can be used as an aid in validating WSDL 2.0 documents. We say "as an aid" here because WSDL 2.0 specification <bibref ref="WSDL-PART1"/> often provides further constraints to the WSDL 2.0 schema. In addition to being valid with the normative schema, a WSDL 2.0 document must also follow all the constraints defined by the WSDL 2.0 specification.   
</p>
<div4 id="element-order"><head>WSDL 2.0 Element Ordering</head>
<p>This section gives an example of how WSDL 2.0 specification constrains the WSDL 2.0 schema about the ordering of top WSDL 2.0 elements.</p>  

<p>Although the WSDL 2.0 schema does not indicate the required ordering of elements, the WSDL 2.0 specification (WSDL 2.0 Part 1 <bibref ref="WSDL-PART1"/> section "<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#Description_XMLRep" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Representation of Description Component</xspecref>") clearly states a set of constraints about how the children elements of the <code>description</code> element should be ordered. Thus, the order of the WSDL 2.0 elements matters, in spite of what the WSDL 2.0 schema says. </p><p>The following is a pseudo-content model of <code>description</code>.</p>

<eg xml:space="preserve">
&lt;<b>description</b>&gt;
  &lt;documentation /&gt;?
  [ &lt;import /&gt; | &lt;include /&gt; ]*
  &lt;types /&gt;?
  [ &lt;interface /&gt; | &lt;binding /&gt; | &lt;service /&gt; ]*
&lt;/<b>description</b>&gt;
</eg>
          
	<p>
		In other words, the children elements of the
		<code>description</code>
		element should be ordered as follows:
	</p>
	<ulist>
		    <item>
			  <p>
			  An optional <el>documentation</el> comes first, if present.
			  </p>
			</item>

		    <item>
		    	<p>
		    		then comes zero or more elements from among the
		    		following, in any order:
		    	</p>
		    	<ulist>
		    		<item>
		    			<p>
		    				<el>include</el>
		    			</p>
		    		</item>
		    		<item>
		    			<p>
		    				<el>import</el>
		    			</p>
		    		</item>
		    		<item>
		    			<p>extensions</p>
		    		</item>
		    	</ulist>
		    </item>

		    <item>
			  <p>
			  An optional <el>types</el> follows
			  </p>
			</item>

		    <item>
		    	<p>
		    		Zero or more elements from among the following, in
		    		any order:
		    	</p>
		    	<ulist>
		    		<item>
		    			<p>
		    				<el>interface</el>
		    			</p>
		    		</item>
		    		<item>
		    			<p>
		    				<el>binding</el>
		    			</p>
		    		</item>
		    		<item>
		    			<p>
		    				<el>service</el>
		    			</p>
		    		</item>
		    		<item>
		    			<p>extensions.</p>
		    		</item>
		    	</ulist>

		    </item>

	  </ulist>

<p>Note the term "extension" is used above as a convenient way to refer to namespace-qualified extension elements. The namespace name of such extension elements must not be<attval>http://www.w3.org/2006/01/wsdl</attval>.
</p>
</div4>
</div3>

<div3 id="component-model"><head>WSDL 2.0 Component Model</head>
<p>The WSDL 2.0 Infoset model above illustrates the required structure of a WSDL 2.0 document, using the XML Infoset.  However, the WSDL 2.0 language also imposes many semantic constraints over and above structural conformance to this XML Infoset. In order to precisely describe these constraints, and as  an aid in precisely defining the meaning of each WSDL 2.0 document, the WSDL 2.0 specification defines a <emph>component model</emph>  as an additional layer of abstraction above the XML Infoset.  Constraints and meaning are defined in terms of this component model, and the definition of each component includes a mapping that specifies how values in the component model are derived from corresponding items in the XML Infoset.   The following diagram gives an overview of  the WSDL 2.0 components and their containment hierarchy.

 <graphic source="images/WSDL20Components.png" alt="WSDL 2.0 Components Containment hierarchy" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></p>


<p>In general, the WSDL 2.0 component model parallels the structure of the required XML Infoset illustrated above.  For example, the <emph>Description</emph>, <emph>Interface</emph>, <emph>Binding</emph>, <emph>Service</emph> and <emph>Endpoint</emph>  <emph>components</emph> correspond to the <code>description</code>, <code>interface</code>, <code>binding</code>,  <code>service</code>, and <code>endpoint</code> element information items, respectively.   Since WSDL 2.0 relies heavily on the component model to convey the meaning of the constructs in the WSDL 2.0 language, you can think of the Description component as representing the meaning of the <code>description</code> element information item, and hence, it represents the meaning of the WSDL 2.0 document as a whole.  </p>

<p>Furthermore, each of these components has <emph>properties</emph>  whose values are (usually) derived from the element and attribute information item children of those element information items.  For example, the Service component corresponds to the <code>service</code> element information item, so the Service component has an {endpoints} property whose value is a set of Endpoint components corresponding to the <code>endpoint</code> element information item children of that <code>service</code> element information item. (Whew!). 

</p>
<div4 id="import-component"><head>WSDL 2.0 Import and Include</head>
	<p>
		The WSDL 2.0 component model is particularly helpful in defining
		the meaning of 	<el>import</el> and <el>include</el> elements.   The
		<el>include</el>
		element allows you to assemble the contents of a given WSDL 2.0
		namespace from several WSDL 2.0 documents that define components
		for that namespace. The components defined by a given WSDL 2.0
		document consist of those whose definitions are contained in the
		document and those that are defined by any WSDL 2.0 documents
		that are included in it via the
		<el>include</el>
		element. The effect of the
		<el>include</el>
		element is cumulative so that if document A includes document B
		and document B includes document C, then the components defined
		by document A consist of those whose definitions are contained
		in documents A, B, and C.
	</p>
	<p>
		In contrast, the
		<el>import</el>
		element does not define any components. Instead, the
		<el>import</el>
		element declares that the components whose definitions are
		contained in a WSDL 2.0 document for a given WSDL 2.0 namespace
		refer to components that belong to a different WSDL 2.0
		namespace. If a WSDL 2.0 document contains definitions of
		components that refer to other namespaces, then those namespaces
		must be declared via an
		<el>import</el>
		element. The
		<el>import</el>
		element also has an optional
		<att>location</att>
		attribute that is a hint to the processor where the definitions
		of the imported namespace can be found. However, the processor
		may find the definitions by other means, for example, by using a
		catalog.
	</p>
	
	<p>
		After processing any
		<el>include</el>
		elements and locating the components that belong to any imported
		namespaces, the WSDL 2.0 component model for a WSDL 2.0 document
		will contain a set of components that belong to the document's
		WSDL 2.0 namespace and any imported namespaces. These components
		will refer to each other, usually via QName references. A WSDL
		2.0 document is invalid if any component reference cannot be
		resolved, whether or not the referenced component belongs to the
		same or a different namespace.
	</p>
	<p>We will cover a lot more about how to use WSDL 2.0 import and include in <specref ref="adv-import-and-authoring"/></p>
	</div4>
</div3></div2>



<!-- ******************MessageTypes********************************** -->
<!-- ******************MessageTypes********************************** -->


<div2 id="more-types"><head>More on Message Types</head>

		<p>Message types may be defined in various schema languages. In this primer, we will only focus on the use of XML Schema <bibref ref="XMLSchemaP1"/> since it's natively supported by WSDL 2.0. Message types defined in other languages may be introduced into a WSDL 2.0 <code>description</code> via extensions, see the W3C notes <bibref ref="altschemalangs"/> for more details. </p>

			<p>The following is the XML syntax for the <code>wsdl:types</code> element:</p>
			
<eg xml:space="preserve">&lt;description&gt;
  &lt;<b>types</b>&gt;
    &lt;documentation /&gt;*
    [ &lt;xs:import namespace="<emph>xs:anyURI</emph>" schemaLocation="<emph>xs:anyURI</emph>"? /&gt; |
      &lt;xs:schema targetNamespace="<emph>xs:anyURI</emph>" /&gt; |
      <emph>other extension elements</emph> ]*
  &lt;/<b>types</b>&gt;
&lt;/description&gt;
</eg>
					
<p>There are two ways to make XML Schema message definitions visible, or in other words, available for reference by QName (see WSDL 2.0 Part 1 <bibref ref="WSDL-PART1"/> "<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#qnameres" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">QName Resolution</xspecref>") in a WSDL 2.0 document: inlining or importing.  Inlining is to put the schema definitions directly within an <code>xs:schema</code> element under <code>types</code>.  Importing is to have the schema defined in a separate document and then bring it into the WSDL definition by using <code>xs:import</code> directly under <code>types</code>. </p> 

<p>In the following sections, we will provide examples for the different mechanisms.</p>			 

			<div3 id="more-types-schema-inline">
				<head>Inlining XML Schema</head>
				<p>We have already seen an example of using inlined schema definitions in section <specref ref="basics-types"/>. When XML Schema is inlined directly in a WSDL 2.0 document, it uses the existing top-level <code>xs:schema</code> element defined by XML Schema to do so, as though a schema file had been copied and pasted into the <code>types</code> element. The schema components defined in the inlined schema are then available to the containing WSDL 2.0 <code>description</code> for reference by QName. For instance, in <specref ref="example-initial"/>, the input message of the interface operation "opCheckAvailability" is defined by the "ghns:checkAvailability" element in the inlined schema. </p>
				
									
			</div3>
			
			<div3 id="more-types-schema-import">
				<head>Importing XML Schema</head>
				
<p>XML Schema components can be defined in separate schema files and be made available to a WSDL2.0 <code>description</code> by using <code>xs:import</code> directly under <code>types</code>. </p>

				<p>	There are many cases where one would prefer having schema definitions in separate schema files. One reason is the reusability of the schema definitions. Inlined schema definitions are only available to the containing WSDL 2.0 <code>description</code>. Although WSDL 2.0 provides a <code>wsdl:import</code> mechanism for importing other WSDL files, schema definitions inlined in an imported WSDL document are NOT automatically made available to the importing WSDL 2.0 document, even though other WSDL 2.0 components (such as Interfaces, Bindings, etc.) do become available.   Therefore, if one wishes to share schema definitions across several WSDL 2.0 <code>description</code>s, these schema definitions should instead be placed in separate XML Schema documents and imported into each WSDL 2.0 <code>description</code> using <code>xs:import</code> directly under <code>types</code>.</p>

				<p>Let's see an example. Assuming the message types in <specref ref="example-initial-types"/> are defined in a separate schema file named "http://greath.example.com/2004/schemas/resSvc.xsd" with a target namespace "http://greath.example.com/2004/schemas/resSvc",  the schema definition can then be brought into the WSDL 2.0 <code>description</code> using <code>xs:import</code>. Note that only components in the imported namespace "http://greath.example.com/2004/schemas/resSvc" are available for reference in the WSDL 2.0 document.   </p>
				
				<example id="example-schema-import">
					<head> <code>xs:import</code>ed Message Definitions that Are Visible to the Containing WSDL 2.0 Description</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
. . . &gt;
. . .

&lt;types&gt;
	&lt;xs:import namespace="http://greath.example.com/2004/schemas/resSvc" 
		schemaLocation= "http://greath.example.com/2004/schemas/resSvc.xsd"/&gt;  
&lt;/types&gt;

. . .
&lt;/description&gt;</eg>
				</example>


<p>It's important to note that <code>xs:import</code> used directly under <code>wsdl:types</code> has been given a different visibility than <code>xs:import</code> used inside an inlined schema. An inlined schema may use native XML schema <code>xs:import</code> to bring in external schema definitions that are in different namespaces; However, though this is the schema importing mechanism recommended for WSDL 1.1 in <xspecref href="http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#WSDL_and_Schema_Import" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">WS-I Basic Profile</xspecref>, according to XML Schema specification, such enclosed message definitions are only visible to the importing schema (in this case, the inlined schema). They are not visible to the containing WSDL 2.0 <code>description</code>. </p> 

				<p>If we change <specref ref="example-schema-import"/> to use XML Schema's native <code>xs:import</code> element in an inlined schema, the schema components defined in the namespace http://greath.example.com/2004/schemas/resSvc are not available to our example WSDL 2.0 definition any more. </p>
				
				<example id="example-schema-import1">
					<head><code>xs:import</code>ed Message Definitions in Inlined Schema Are Not Visible to the Containing WSDL 2.0 Description</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
. . . &gt;
. . .

&lt;types&gt;
	&lt;xs:schema targetNamespace="http://greath.example.com/2004/schemas/resSvcWrapper"&gt;
		&lt;xs:import namespace="http://greath.example.com/2004/schemas/resSvc" 
		schemaLocation= "http://greath.example.com/2004/schemas/resSvc.xsd"/&gt;  
	&lt;/xs:schema&gt;
&lt;/types&gt;

. . .
&lt;/description&gt;</eg>
				</example>


<p>Of course, an inlined XML schema may also use XML Schema's native <code>xs:include</code> element to refer to schemas defined in separate files when the included schema has no namespace or has the same namespace as the including schema. In this case, according to XML Schema, the included schema components become a part of the including schema as though they had been copied and pasted into the including schema. Hence, the included schema components are also available to the containing WSDL 2.0 <code>description</code> for reference by QName. </p>	

<p>The following example has the same effect as <specref ref="example-initial-types"/>:</p>
			
				<example id="example-schema-import2">
					<head><code>xs:included</code> Message Definitions in Inlined Schema Are Visible to the Containing WSDL 2.0 Description</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
. . . &gt;
. . .

&lt;types&gt;
	&lt;xs:schema targetNamespace="http://greath.example.com/2004/schemas/resSvc"&gt;
		&lt;xs:include schemaLocation= "http://greath.example.com/2004/schemas/resSvc.xsd"/&gt;  
	&lt;/xs:schema&gt;
&lt;/types&gt;

. . .
&lt;/description&gt;</eg>
				</example>
				
			</div3>
			
			
			
		<div3 id="more-types-import-include-summary"><head>Summary of Import and Include Mechanisms</head>

				
<p>So far we have briefly covered both WSDL import/include and schema import/include.  The following table summarizes the similarities and differences
between the WSDL 2.0 and XML Schema
<el>include</el> and <el>import</el> mechanisms. We will talk a lot more about importing mechanisms in <specref ref="adv-import-and-authoring"/> and <specref ref="adv-multiple-inline-schemas"/></p>
			<table border="1" id="imin">
				<caption>
					Summary of Import and Include Mechanisms
				</caption>
				<thead>
					<tr>
						<th rowspan="1" colspan="1">Mechanism</th>
						<th rowspan="1" colspan="1">Object</th>
						<th rowspan="1" colspan="1">Meaning</th>
						<th rowspan="1" colspan="1">Visibility of Schema Components</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td rowspan="1" colspan="1">wsdl:import</td>
						<td rowspan="1" colspan="1">WSDL 2.0 Namespace</td>
						<td rowspan="1" colspan="1">
							Declare that WSDL 2.0 components
							refer to WSDL 2.0 components 
							from a DIFFERENT targetNamespace.
						</td>
			<td rowspan="1" colspan="1">
			XML Schema Components in the imported <comp>Description</comp>
			component are NOT visible to the containing <code>description</code>.
			</td>
						
					</tr>
					<tr>
						<td rowspan="1" colspan="1">wsdl:include</td>
						<td rowspan="1" colspan="1">WSDL 2.0 Document</td>
						<td rowspan="1" colspan="1">
							Merge Interface, Binding and Service
							components from another WSDL 2.0 document
							that has the SAME targetNamespace. 
						</td>
			<td rowspan="1" colspan="1">
			XML Schema components in the included <comp>Description</comp> component's
			<prop comp="Description">element declarations</prop> and 
			<prop comp="Description">type definitions</prop> properties are visible to the containing <code>description</code>.
			</td>
					</tr>
					<tr>
						<td rowspan="1" colspan="1">wsdl:types/ xs:import</td>
						<td rowspan="1" colspan="1">XML Schema Namespace</td>
						<td rowspan="1" colspan="1">
							Declare that XML Schema components
							refer to XML Schema components
							from a DIFFERENT targetNamespace.
						</td>

			<td rowspan="1" colspan="1">
			XML Schema components in the imported namespace are visible to the containing <code>description</code>.
			</td>
					</tr>
					<tr>
						<td rowspan="1" colspan="1">wsdl:types/ xs:schema/xs:import</td>
						<td rowspan="1" colspan="1">XML Schema Namespace</td>
						<td rowspan="1" colspan="1">
							Declare that XML Schema components
							refer to XML Schema components
							from a DIFFERENT targetNamespace.
						</td>

			<td rowspan="1" colspan="1">
			XML Schema components in the imported namespace are NOT visible to the containing <code>description</code>.
			</td>
					</tr>
					<tr>
						<td rowspan="1" colspan="1">wsdl:types/ xs:schema/xs:include</td>
						<td rowspan="1" colspan="1">XML Schema Document</td>
						<td rowspan="1" colspan="1">
							Merge XML Schema components from
							another XML Schema document that has the
							SAME or NO targetNamespace.
						</td>
			<td rowspan="1" colspan="1">
			XML Schema components in the
			included document are visible to the containing <code>description</code>.
			</td>
					</tr>
				</tbody>
			</table>
		
		</div3>

		
</div2>


			
<!-- ******************Interface********************************** -->
<!-- ******************Interface********************************** -->
<div2 id="more-interfaces">
			<head>More on Interfaces</head>
			
			<!-- ************************interface*************************** -->
			<p>We previously mentioned that a WSDL 2.0 interface is basically a set of operations. However, there are some additional capabilities that we have not yet covered.  First, let's review the syntax for the <code>interface</code> element. </p>
			<div3 id="more-interfaces-interfaces">
				<head>Interface Syntax </head>
				
				
				<p>Below is the XML syntax summary of the <code>interface</code> element, simplified by omitting optional  <code>&lt;documentation&gt;</code>  elements and  <code>&lt;feature&gt;</code>  and  <code>&lt;property&gt;</code>  extension elements:</p>
				<eg xml:space="preserve">
&lt;description targetNamespace="<emph>xs:anyURI</emph>" &gt;

  . . .
  &lt;interface name="<emph>xs:NCName</emph>" 
          extends="<emph>list of xs:QName</emph>"? 
          styleDefault="<emph>list of xs:anyURI</emph>"? &gt;

    &lt;fault name="<emph>xs:NCName</emph>" 
            element="<emph>xs:QName</emph>"? &gt;
    &lt;/fault&gt;*

    &lt;operation name="<emph>xs:NCName</emph>" 
            pattern="<emph>xs:anyURI</emph>" 
            style="<emph>list of xs:anyURI</emph>"? 
            wsdlx:safe="<emph>xs:boolean</emph>"? &gt;

      &lt;input messageLabel="<emph>xs:NCName</emph>"? 
            element="<emph>union of xs:QName, xs:Token</emph>"? &gt;
      &lt;/input&gt;*

      &lt;output messageLabel="<emph>xs:NCName</emph>"? 
            element="<emph>union of xs:QName, xs:Token</emph>"? &gt;
      &lt;/output&gt;*

      &lt;infault ref="<emph>xs:QName</emph>" messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/infault&gt;*

      &lt;outfault ref="<emph>xs:QName</emph>" messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/outfault&gt;*

    &lt;/operation&gt;*

  &lt;/interface&gt;*
  . . .

&lt;/description&gt;
  
</eg>
				
				<p>The <code>interface</code> element has two optional attributes:  <att>styleDefault</att> and  <att>extends</att>.  The <att>styleDefault</att>  attribute can be used to define a default value for the <att>style</att> attributes of all operations under this interface (see WSDL 2.0 Part 1 "<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#Interface_styleDefault_attribute" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">styleDefault attribute information item</xspecref>").  The <att>extends</att>  attribute is for inheritance, and is explained next.   </p>
				
			</div3>
	<div3 id="more-interfaces-inheritance">
				<head>Interface Inheritance</head>
				<p>
					The optional
					<att>extends</att>
					attribute allows an interface to extend or inherit
					from one or more other interfaces. In such cases the
					interface contains the operations of the interfaces
					it extends, along with any operations it defines
					directly. Two things about extending interfaces
					deserve some attention.
				</p>
				<p>
					First, an inheritance loop (or infinite recursion)
					is prohibited: the interfaces that a given interface
					extends must NOT themselves extend that interface
					either directly or indirectly.
				</p>
				<p>
					Second, we must explain what happens when operations
					from two different interfaces have the same target
					namespace and operation name. There are two cases:
					either the component models of the operations are
					the same, or they are different. If the component
					models are the same (per the component comparison
					algorithm defined in WSDL 2.0 Part 1
					<bibref ref="WSDL-PART1"/>
					"
					<xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#compequiv" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
						Equivalence of Components
					</xspecref>
					") then they are considered to be the same
					operation, i.e., they are collapsed into a single
					operation, and the fact that they were included more
					than once is not considered an error. (For
					operations, component equivalence basically means
					that the two operations have the same set of
					attributes and descendants.) In the second case, if
					two operations have the same name in the same WSDL
					2.0 target namespace but are not equivalent, then it
					is an error. For the above reason, it is considered
					good practice to ensure that all operations within
					the same target namespace are named uniquely.
				</p>
				<p>
					Finally, since faults can
					also be defined as children of the
					<code>interface</code>
					element (as described in the following sections),
					the same name-collision rules apply to those
					constructs.
				</p>

				<p>Let's say the GreatH hotel wants to maintain a standard message log operation for all received messages. It wants this operation to be reusable across the whole reservation system, so each service will send out,  for potential use of a logging service, 
the content of each message it receives together with a timestamp and the originator of the message. One way to meet such requirement is to define the log operation in an interface which can be inherited by other interfaces. Assuming a <code>messageLog</code> element is already defined in the ghns namespace with the required content, the inheritance use case is illustrated in the following example. As a result of the inheritance, the <code>reservationInterface</code> now contains two operations: <code>opCheckAvailability</code> and <code>opLogMessage</code></p>

<example id="example-faults">
					<head>Interface Inheritance</head>
				<eg xml:space="preserve">
					
&lt;description ...&gt;
	...
	&lt;interface  name = "messageLogInterface" &gt;
				
		&lt;operation name="opLogMessage" 
				pattern="http://www.w3.org/2006/01/wsdl/out-only"&gt;
			&lt;output messageLabel="out" 
				element="ghns:messageLog" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

	&lt;interface  name="reservationInterface" <b>extends</b>="tns:messageLogInterface" &gt;
   
		&lt;operation name="opCheckAvailability" 
				pattern="http://www.w3.org/2006/01/wsdl/in-out"
				style="http://www.w3.org/2006/01/wsdl/style/iri"
				wsdlx:safe = "true"&gt;
			&lt;input messageLabel="In" 
				element="ghns:checkAvailability" /&gt;
			&lt;output messageLabel="Out" 
				element="ghns:checkAvailabilityResponse" /&gt;
			&lt;outfault ref="tns:invalidDataFault" messageLabel="Out"/&gt;

		&lt;/operation&gt;
	&lt;/interface&gt;
	...
&lt;/description&gt;</eg>
				</example>	
							
				<p>Now let's have a look at the element children of <code>interface</code>, beginning with <code>fault</code>. </p>		

			</div3>
			<div3 id="more-interfaces-faults">
				<head>Interface Faults</head>
				<p>The <code>fault</code> element is used to declare faults that may occur during execution of operations of an interface.  They are declared directly under <code>interface</code>, and referenced from operations where they apply, in order to permit reuse across  multiple operations. </p>
				<p>Faults are very similar to messages and can be viewed as a special kind of 
message. Both faults and messages may carry a payload that is normally described 
by an element declaration. However, WSDL 2.0 treats faults and messages slightly 
differently. The messages of an operation directly refer to their element 
declaration, however the faults of an operation indirectly refer to their 
element declaration via a fault element that is defined on the interface. </p>

<p>The reason for defining faults at 
the interface level is to allow their reuse across multiple operations. This 
design is especially beneficial when bindings are defined, since in binding extensions like 
SOAP there is additional information that is associated with faults. In the case 
of SOAP, faults have codes and subcodes in addition to a payload. By defining 
faults at the interface level, common codes and subcodes can be associated with 
them, thereby ensuring consistency across all operations that use the faults </p>

				<p>
					The
					<el>fault</el>
					element has a required
					<att>name</att>
					attribute that must be unique within the parent <el>interface</el> element, and permits it to be
					referenced from operation declarations. The optional
					<att>element</att>
					attribute can be used to indicate a schema for the
					content or payload of the fault message. Its value
					should be the QName of a global element defined in
					the
					<code>types</code>
					section. Please note that when other type systems
					are used to define the schema for a fault message,
					additional attributes may need to be defined via
					WSDL 2.0's attribute extension mechanism to allow
					the schema to be associated with the fault.
				</p>


			</div3>
			<div3 id="more-interfaces-operations">
				<head>Interface Operations</head>
				<p>As shown earlier, the <code>operation</code> element is used to indicate an operation supported by the containing interface.  It associates message schemas with a message exchange pattern (MEP), in order to abstractly describe a simple interaction with a Web service.   </p>
				
				
				
			<div4 id="more-interfaces-op-attr"><head>Operation Attributes</head><p>An <code>operation</code> has two required attributes and one optional attribute:</p>
				<ulist>
					<item>
						<p>A required <att>name</att> attribute, as seen already, which must be unique within the interface.</p>
						
					</item>
					<item>
						<p>A required <att>pattern</att> attribute whose value must be an absolute URI that identifies the desired MEP for the  <code>operation</code>.  MEPs are further explained  in  <specref ref="more-interfaces-meps"/>.</p>
						
					</item>
					<item>
						<p>An optional <att>style</att> attribute whose value is a list of absolute URIs.  Each URI identifies a certain set of rules that were followed in defining this  <code>operation</code>.   It is an error if a particular style is indicated, but the associated rules are not followed.  <bibref ref="WSDL-PART2"/>  defines a set of styles, including</p>  
				<ulist>
					<item><p>RPC Style. The RPC style is selected when the <att>style</att> is assigned the value http://www.w3.org/2006/01/wsdl/rpc. It places restrictions for Remote Procedure Call-types of interactions. </p></item>
					<item><p>IRI Style. The IRI style is selected when the <att>style</att> is assigned the value http://www.w3.org/2006/01/wsdl/style/iri. It places restrictions on message definitions so they may be serialized into something like HTTP URL encoded.</p></item>
					<item><p>The Multipart style. The Multipart style is selected when the <att>style</att> is assigned the value http://www.w3.org/2006/01/wsdl/style/multipart. In the HTTP binding, for XForms clients, a message must be defined following the Multipart style and serialized as "Multipart/form-data". </p> </item>
				</ulist>	
						
						 <p>You can find more details of these WSDL 2.0 predefined styles. Section <specref ref="adv-RPCstyle"/> provides an example of using the RPC <code>style</code>. <bibref ref="WSDL-PART2"/> provides examples for the IRI style and Multipart style. </p>
											
						
					</item>					
					
				</ulist>
						<p>Note that <bibref ref="WSDL-PART2"/> provides a predefined extension for indicating operation safety.  The <att>wsdlx:safe</att> global attribute whose value is a boolean can be used with an operation to indicate whether the operation is asserted to be "safe" (as defined in Section 3.5 of the Web Architecture <bibref ref="webarch"/>)  for clients to invoke. In essence, a safe operation is any operation that does not give the client any new obligations.  For example, an operation that permits the client to check prices on products typically would not obligate the client to buy those products, and thus would be safe, whereas an operation for purchasing products would obligate the client to pay for the products that were ordered, and thus would not be safe.   </p><p>An operation should be marked safe (by using the <att>wsdlx:safe</att> and by setting its value to "true") if it meets the criteria for a safe interaction defined in Section 3.5 of  the Web Architecture <bibref ref="webarch"/>, because this permits the infrastructure to perform efficiency optimizations, such as pre-fetch, re-fetch and caching. </p><p>The default value of this attribute is false. If it is false or is not set, then no assertion is made about the safety of the operation; thus the operation may or may not be safe.</p>
				
				</div4><div4><head>Operation Message References</head><p>An <code>operation</code> will also have <code>input</code>, <code>output</code>,<code>infault</code>, and/or <code>outfault</code> element children that specify the ordinary and fault message types to be used by that operation.  The MEP specified by the <code>pattern</code> attribute determines which of these  elements should be included, since each MEP has placeholders for the message types involved in its pattern.     </p><p>Since operations were already discussed in <specref ref="basics-interface"/>, this section will merely comment on additional capabilities that were not previously explained.</p>
				<div5>
					<head>The messageLabel Attribute</head>
					<p>
						The
						<att>messageLabel</att>
						attribute of the
						<code>input</code>
						and
						<code>output</code>
						elements is optional. It is not necessary to
						explicitly set the
						<code>messageLabel</code>
						when the MEP in use is one of the eight MEPs
						predefined in WSDL 2.0 Part 2
						<bibref ref="WSDL-PART2"/>
						and it has only one message with a given
						direction.
					</p>
				</div5>
				<div5>
					<head>The element Attribute</head>
					<p>
						The
						<att>element</att>
						attribute of the
						<code>input</code>
						and
						<code>output</code>
						elements is used to specify the message content
						schema (aka payload schema) when the content
						model is defined using XML Schema. As we have
						seen already, it can specify the QName of an
						element schema that was defined in the
						<code>types</code>
						section. However, alternatively it can specify
						one of the following tokens:
						<glist>
							<gitem>
								<label>
									<code>#any</code>
								</label>
								<def>
									<p>
										The message content is any
										single element.
									</p>
								</def>
							</gitem>
							<gitem>
								<label>
									<code>#none</code>
								</label>
								<def>
									<p>
										There is no message content,
										i.e., the message payload is
										empty.
									</p>
								</def>
							</gitem>
							<gitem>
								<label>
									<code>#other</code>
								</label>
								<def>
									<p>
										The message content is described by a non-XML type system.
										Extension attributes specify the type.
									</p>
								</def>
							</gitem>
						</glist>
						The
						<code>element</code>
						attribute is also optional. If it is not specified, then the message content is described by a non-XML type system.
					</p>
					<p>Note that there are situations that the information conveyed in the <code>element</code> attribute is not sufficient for a service implementation to uniquely identify an incoming message and  dispatch it to an appropriate operation. In such situations, additional means may be required to aid identifying an incoming message. See <specref ref="adv-message-dispatch"/> for more detail.   
					
</p>
				</div5>
				<div5><head>Multiple infault or outfault Elements</head><p>When <code>infault</code> and/or <code>outfault</code> occur multiple times within an <code>operation</code>, they define alternative fault messages. </p></div5></div4>
			
			<!-- ************************MEPs*************************** -->
			<div4 id="more-interfaces-meps">
				<head>Understanding Message Exchange Patterns (MEPs)</head>
				<p>WSDL 2.0 message exchange patterns (MEPs) are used to define the sequence and cardinality of the abstract messages in  an operation. By design, WSDL 2.0 MEPs are abstract. First of all, they abstract out specific message types. MEPs identify placeholders for messages, and placeholders are associated with specific message types when an operation is defined, which includes specifying which MEP to use for that operation. Secondly, unless explicitly stated otherwise, MEPs also abstract out binding-specific information like timing between messages, whether the pattern is synchronous or asynchronous, and whether the messages are sent over a single or multiple channels.</p>
				<p>It's worth pointing out that WSDL 2.0 MEPs do not exhaustively describe the set of messages that may be exchanged between a service and other nodes.  By some prior agreement, another node and/or the service may send other messages (to each other or to other nodes) that are not described by the 
MEP. For instance, even though an MEP may define a single message sent 
from a service to one other node, a service defined by that MEP may multicast that message to 
other nodes. To maximize reuse, WSDL 2.0 message exchange patterns identify a minimal contract between other parties and Web Services, and contain only information that is relevant to both the Web service and the client that engages that service.</p>
				<p>A total of eight MEPs are defined in <bibref ref="WSDL-PART2"/>. These MEPs should cover the most common use cases, but they are not meant to be an exhaustive list of MEPs that can ever be used by operations. More MEPs can be defined for particular application needs by interested parties.  (See <specref ref="more-interfaces-meps"/> )</p>
				<p>For the eight MEPs defined by WSDL 2.0, some of them are variations of others based on how faults may be generated. For example, the In-Only pattern ("http://www.w3.org/2006/01/wsdl/in-only") consists of exactly one message received by a service from some other node. No fault can be generated. As a variation of In-Only, Robust In-Only pattern ("http://www.w3.org/2006/01/wsdl/robust-in-only") also consists of exactly one message received by a service, but in this case faults can be triggered by the message and must be delivered to the originator of the message. If there is no path to this node, the fault must be discarded. For details about the common fault generation models used by the eight WSDL 2.0 MEPs, see <bibref ref="WSDL-PART2"/>. </p>
				
				<p>Depending on how the first message in the MEP is initiated, the eight WSDL 2.0 MEPs may be grouped into two groups: in-bound MEPs, for which the service receives the first message in the exchange, and out-bound MEPs, for which the service sends out the first message in the exchange. (Such grouping is not provided in the WSDL 2.0 specification and is presented here only for the purpose of easy reference in this primer).</p> 
				
				<p> A frequently asked question about out-bound MEPs is how a service knows where to send the message. Services using out-bound MEPs are typically part of large scale integration systems that rely on mapping and routing facilities. In such systems, out-bound MEPs are useful for specifying the functionality of a service abstractly, including its requirements for potential customers, while endpoint address information can be provided at deployment or runtime by the underlying integration infrastructure. For example, the GreatH hotel reservation system may require that every time a customer interacts with the system to check availability, data about the customer must be logged by a CRM system. At design time, it's unknown which particular CRM system would be used together with the reservation system.  To address this requirement, we may change the "reservationInterface" in <specref ref="example-initial"/> to include an out-bound logInquiry operation. This <code>logInquiry</code> operation advertises to potential service clients that customer data will be made available by the reservation service at run time. When the reservation service is deployed to GreatH's IT landscape, appropriate configuration time and run time infrastructure will help determine which CRM system will get the customer data and log it appropriately. It's worth noting that in addition to being used by a CRM system for customer management purpose, the same data may also be used by a system performance analysis tool for different purpose. Providing an out-bound operation in the reservation service enables loose coupling and so improves the overall GreatH IT landscape's flexibility and scalability. </p>
		
<example id="example-outbound-operation">
					<head>Use of outbound MEPs</head>
				<eg xml:space="preserve">
					
&lt;description ...&gt;
	...
	&lt;interface  name="reservationInterface"&gt;
		...
		&lt;operation name="opCheckAvailability" ... &gt;
		
		&lt;operation name="opLogInquiry" 
				<b>pattern="http://www.w3.org/2006/01/wsdl/out-only"</b>&gt;
			&lt;<b>output messageLabel="Out" element="ghns:customerData"</b> /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;
	...
&lt;/description&gt;</eg>
				</example>				
				
<p>Although the eight MEPs defined in WSDL 2.0 Part 2 <bibref ref="WSDL-PART2"/> are intended to cover most use cases, WSDL 2.0 has designed this set to be extensible.  This is why MEPs are identified by URIs rather than a fixed set of  tokens.</p>
 <p>For more about defining new MEPs, see <specref ref="adv-MEP"/>.  </p></div4></div3>
</div2>



<!-- **********************************Binding************************** -->
<!-- **********************************Binding************************** -->
		<div2 id="more-bindings">
			<head>More on Bindings</head>
			
			<p>Bindings are used to supply protocol and encoding details that specify <emph>how</emph> messages are to be sent or received.   Each <code>binding</code> element uses a particular <emph>binding extension</emph> to specify such information.  WSDL 2.0 Part 2 <bibref ref="WSDL-PART2"/> defines several binding extensions that are typically used.  However, binding extensions that are not defined in WSDL 2.0 Part 2 can also be used, provided that client and service toolkits support them.</p><p>Binding information must be supplied for every operation in the interface that is used in an endpoint.  However, if the desired binding extension provides suitable defaulting rules, then the information will only need to be explicitly supplied at the interface level, and the defaulting rules will implicitly propagate the information to the operations of the interface.   For example, see the <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327#soap-defaults" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Default Binding Rules</xspecref> of SOAP binding extension in  WSDL 2.0 Part 2 
  <bibref ref="WSDL-PART2"/>.</p>
			
			<div3 id="more-bindings-wsdl">
				<head>Syntax Summary for Bindings</head>
				<p>Since bindings are specified using extensions to the WSDL 2.0 language (i.e., binding extensions are not in the WSDL 2.0 namespace), the XML for expressing a binding will consist of a mixture of elements and attributes from WSDL 2.0 namespace and from the binding extension's namespace, using WSDL 2.0's open content model.    </p><p>Here is a syntax summary for  <code>binding</code>, simplified by omitting optional <code>documentation</code>, <code>feature</code> and <code>property</code> elements. Bear in mind that this syntax summary only shows the  elements and attributes defined within the WSDL 2.0 namespace.   When an actual binding is defined, elements and attributes from the namespace of the desired binding extension will also be intermingled as required by that particular binding extension.</p>
				<eg xml:space="preserve">
&lt;description targetNamespace="<emph>xs:anyURI</emph>" &gt;
  . . .
  &lt;<b>binding</b> name="<emph>xs:NCName</emph>" interface="<emph>xs:QName</emph>"? &gt;

    &lt;fault ref="<emph>xs:QName</emph>" &gt;  &lt;/fault&gt;*

    &lt;operation ref="<emph>xs:QName</emph>" &gt;
      &lt;input messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/input&gt;*
      &lt;output messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/output&gt;*
      &lt;infault ref="<emph>xs:QName</emph>" messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/infault&gt;*
      &lt;outfault ref="<emph>xs:QName</emph>" messageLabel="<emph>xs:NCName</emph>"? &gt; &lt;/outfault&gt;*
    &lt;/operation&gt;*

  &lt;/<b>binding</b>&gt;*
  . . .
&lt;/description&gt;
</eg>
				
				
				
				<p>The <code>binding</code> syntax parallels the syntax of <code>interface</code>: each interface construct has  a binding counterpart. Despite this syntactic similarity, they are indeed different constructs, since they are in different symbol spaces and are designed for different purposes. </p>
			</div3>
			<div3 id="more-bindings-reusable"><head>Reusable Bindings</head><p>A binding can either be reusable (applicable to any
      interface) or non-reusable (specified for a particular interface).    Non-reusable bindings may be specified at the granularity of the interface (assuming the binding extension provides suitable defaulting rules), or on a per-operation basis if needed.  A non-reusable binding was demonstrated in <specref ref="basics-binding"/>.</p><p>To define a reusable binding, the <code>binding</code>   element simply omits the <code>interface</code> attribute and  omits specifying any
      operation-specific and fault-specific binding details.   Endpoints can later refer to a reusable binding in the same manner as for a non-reusable binding.   Thus, a reusable binding becomes associated with a particular interface when it is referenced from an endpoint, because an endpoint is part of a service, and the service specifies a particular interface that it implements.  Since a reusable binding does not specify an interface, reusable bindings cannot specify operation-specific details.  Therefore, reusable bindings can only be defined using binding extensions that have suitable defaulting rules, such that the binding information only needs to be explicitly supplied at the interface level.</p></div3>
      
      <div3 id="more-bindings-faults">
				<head>Binding Faults</head>
				<p>A binding <code>fault</code> associates a concrete message format with an abstract fault 
of an interface. It describes how faults that occur within a message exchange of an operation will be formatted, since the fault does not occur by itself.  Rather, a fault occurs as part of a message 
exchange specified by an interface <code>operation</code> and its binding 
counterpart, the binding <code>operation</code>. </p>
				<p>A binding <code>fault</code> has one required <att>ref</att> attribute which is a reference, by QName, to an <code>interface</code>
					<att>fault</att>.  It identifies the abstract interface <code>fault</code> for which binding information is being specified. Be aware that the value of <att>ref</att> attribute of all the <code>faults</code> under a <code>binding</code>
must be unique. That is, one cannot define multiple bindings for the same interface fault within a given <code>binding</code>.</p>
			</div3>
			<div3 id="bindingOperations">
				<head id="more-bindings-operations">Binding Operations</head>
				<p>A binding <code>operation</code> describes a concrete binding of an interface
operation to a concrete message format.  An interface
operation is uniquely identified by the WSDL 2.0 target namespace of the 
interface and the name of the operation within that interface, via the required <att>ref</att> attribute of binding <code>operation</code>. As with faults, for each <code>operation</code> within a <code>binding</code>, the value of the  <att>ref</att> attribute must be unique.</p>
			</div3>

			<div3 id="more-bindings-soap">
				<head>The SOAP Binding Extension</head>
				
				
					
					
				<p>The WSDL 2.0 SOAP Binding Extension (see WSDL 2.0 Part 2 <bibref ref="WSDL-PART2"/>)   was primarily designed to support the features of SOAP 1.2 <bibref ref="SOAP12-PART1"/>.  However, for backwards compatibility, it also provides some support for SOAP 1.1 <bibref ref="SOAP11"/>.     </p><p>An example using the WSDL 2.0 SOAP binding extension was already presented in <specref ref="basics-binding"/>, but some additional points are worth mentioning:<ulist><item><p>Because the same binding extension is used for both SOAP 1.2 and SOAP 1.1, a <code>wsoap:version</code> attribute is provided to allow you to indicate which version of SOAP you want.  If this attribute is not specified, it defaults to SOAP 1.2.</p></item><item><p>The WSDL 2.0 SOAP binding extension defines a set of default rules, so that bindings can be specified at the interface level or at the operation level (or both), with the operation level taking precedence.   However, it does not define default binding rules for faults. Thus, if a given interface defines any faults, then corresponding binding information must be explicitly provided for each such fault.</p></item><item><p>If HTTP is used as the underlying protocol, then the binding can (and should) control whether each operation will  use HTTP GET or POST.  (See    <specref ref="adv-get-vs-post"/>.)</p></item></ulist></p><p>Here is an example that illustrates both a SOAP 1.2 binding (as seen before) and a SOAP 1.1 binding.</p><example id="example-binding-soap">
					<head>SOAP 1.2 and SOAP 1.1 Bindings</head>

<eg xml:space="preserve">
&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description 
  xmlns="http://www.w3.org/2006/01/wsdl"
  targetNamespace="http://greath.example.com/2004/wsdl/resSvc" 
  xmlns:tns="http://greath.example.com/2004/wsdl/resSvc"
  xmlns:ghns="http://greath.example.com/2004/schemas/resSvc"
  xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
  xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
  xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"&gt;

 ....

  &lt;!-- SOAP 1.2 Binding --&gt;
  &lt;binding name="reservationSOAPBinding" 
    interface="tns:reservationInterface"
    type="http://www.w3.org/2006/01/wsdl/soap"
    wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

    &lt;operation ref="tns:opCheckAvailability" 
      wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response"/&gt;
  
    &lt;fault ref="tns:invalidDataFault" 
      wsoap:code="soap:Sender"/&gt;

  &lt;/binding&gt;
  
  &lt;!-- SOAP 1.1 Binding --&gt;
  &lt;binding name="reservationSOAP11Binding" 
    interface="tns:reservationInterface"
    type="http://www.w3.org/2006/01/wsdl/soap"
    wsoap:version="1.1"
    wsoap:protocol="http://www.w3.org/2006/01/soap11/bindings/HTTP"&gt;
  
    &lt;operation ref="tns:opCheckAvailability"/&gt;
  
    &lt;fault ref="tns:invalidDataFault" 
      wsoap:code="soap11:Client"/&gt;

  &lt;/binding&gt;


  &lt;service name="reservationService" 
    interface="tns:reservationInterface"&gt;

    &lt;!-- SOAP 1.2 End Point --&gt;
    &lt;endpoint name="reservationEndpoint" 
      binding="tns:reservationSOAPBinding"
      address="http://greath.example.com/2004/reservation"/&gt;

    &lt;!-- SOAP 1.1 End Point --&gt;
    &lt;endpoint name="reservationEndpoint2"
      binding="tns:reservationSOAP11Binding"
      address="http://greath.example.com/2004/reservation"/&gt;
  
  &lt;/service&gt;  
&lt;/description&gt;

</eg>
				</example>



			<div4 id="more-bindings-soap-example-explanation"><head>Explanation of Example</head><p>Most lines in this example is the same as previously explained in <specref ref="basics-binding"/>, so we'll only point out lines that are demonstrating something new for SOAP 1.1 binding.<glist><gitem><label><code>&lt;description ... xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"&gt;</code></label><def><p>This is the namespace for terms defined within the SOAP 1.1 specification <bibref ref="SOAP11"/>.</p></def></gitem><gitem><label><code>&lt;binding...wsoap:version="1.1"</code></label><def><p>This line indicates that this binding uses SOAP 1.1 <bibref ref="WSDL-SOAP11"/>, rather than SOAP 1.2.</p></def></gitem><gitem><label><code>wsoap:protocol="http://www.w3.org/2005/05/soap11/bindings/HTTP"&gt;</code></label><def><p>This line specifies that HTTP should be used as the underlying transmission protocol. See  also  <specref ref="adv-get-vs-post"/>.</p></def></gitem>
			
<gitem><label><code>&lt;operation ref="tns:opCheckAvailability"/&gt;</code></label><def><p>Note that <code>wsoap:mep</code> is not applicable to SOAP 1.1 binding. </p></def></gitem>
			<gitem><label><code>&lt;fault...wsoap:code="soap11:Client"/&gt;</code></label><def><p>This line specifies the SOAP 1.1 fault code that will be used in  transmitting invalidDataFault.</p></def></gitem>
			</glist></p>

</div4></div3>

			<div3 id="more-bindings-http">
				<head>The HTTP Binding Extension</head>
				<p>In addition to the WSDL 2.0 SOAP binding extension described above, WSDL 2.0 Part 2  <bibref ref="WSDL-PART2"/> defines a binding extension for HTTP 1.1 <bibref ref="RFC2616"/> and HTTPS <bibref ref="RFC2818"/>, so that these protocols can be used natively to send and receive messages, without first encoding them in SOAP.</p><p>The HTTP binding extension provides many features to control:<ulist><item><p> Which HTTP operation will be used.  (GET, PUT, POST, DELETE, and other HTTP operations are supported.)</p></item><item><p>Input, output and fault serialization</p></item><item><p>Transfer codings</p></item><item><p>Authentication requirements</p></item><item><p>Cookies</p></item><item><p>HTTP over TLS (https)</p></item></ulist></p><p>As with the WSDL 2.0 SOAP binding extension, the HTTP binding extension also provides defaulting rules to permit binding information to be specified at the interface level and used by default for each operation in the affected interface, however, defaulting rules are not provided for binding faults.</p><p>Here is an example of using the HTTP binding extension to check hotel room 
availability at GreatH.</p><example id="example-bindings-http">
					<head>HTTP Binding Extension</head>
					<eg xml:space="preserve">
&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
      . . .
      xmlns:whttp="http://www.w3.org/2006/01/wsdl/http" &gt;

  . . .
  &lt;binding name="reservationHTTPBinding"
      interface="tns:reservationInterface"
      type="http://www.w3.org/2006/01/wsdl/http"
      whttp:methodDefault="GET"&gt;

    &lt;operation ref="tns:opCheckAvailability"
      whttp:location="{checkInDate}"  /&gt;
  &lt;/binding&gt;

  &lt;service name="reservationService"
    interface="tns:reservationInterface"&gt;

    &lt;!-- HTTP 1.1 GET End Point --&gt;
    &lt;endpoint name="reservationEndpoint"
      binding="tns:reservationHTTPBinding"
      address="http://greath.example.com/2004/checkAvailability/"/&gt;

  &lt;/service&gt;
  . . .
&lt;/description&gt;</eg>
				</example>
			<div4><head>Explanation of
			Example</head>
			
			
			<p>Most of this example is the same as previously explained in <specref ref="basics-binding"/>, so we'll only point out lines that are demonstrating something new for HTTP binding extension.
			
			<glist>
<gitem>
<label><code>&lt;description...xmlns:whttp="http://www.w3.org/2006/01/wsdl/http" &gt;</code></label><def><p>This defines the  namespace prefix for elements and attributes defined by the WSDL 2.0 HTTP binding extension.</p></def></gitem>

<gitem>
<label><code>&lt;binding...type="http://www.w3.org/2006/01/wsdl/http"</code></label>
<def>
  <p>
    This declares the binding as being an HTTP binding.
  </p>
</def>
</gitem>

<gitem><label><code>whttp:methodDefault="GET"&gt;</code></label><def><p>The default method for operations in this interface will be HTTP GET.</p></def></gitem><gitem><label><code>whttp:location="{checkInDate}"  &gt;</code></label><def><p>The <code>whttp:location</code> attribute specifies a pattern for serializing input message instance data into the path component of the  request URI.   The default binding rules for HTTP specify that the default input
serialization for GET is <code>application/x-www-form-urlencoded</code>.  Curly braces are used to specify the name of a schema type in the input message schema, which determines what input instance data will be inserted into the path component of the request URI.    The curly brace-enclosed name will be replaced with instance data in constructing the path component.  Remaining input instance data (not specified by <code>whttp:location</code>) will either be serialized into the query string portion of the URI or into the message body, as follows:  if a "/" is appended to a curly brace-enclosed type name, then any remaining input message instance data will be serialized into the message body. Otherwise it will be serialized into query parameters.</p><p>Thus, in this example, each of the elements in the <code>tCheckAvailability</code> type will be serialized into the query parameters. A sample resulting URI would therefore be
<code>http://greath.example.com/2004/checkAvailability/5-5-5?checkOutDate=6-6-5&amp;roomType=foo</code>. </p></def></gitem></glist></p>

<p>Here is an alternate example that appends "/" to the type name in order to serialize the remaining instance data into the message body:</p><example id="example-bindings-http-path-subsset">
					<head>Serializing a Subset of Types in the Path</head>
					<eg xml:space="preserve">

. . .
&lt;operation ref="tns:opCheckAvailability"
    whttp:location="bycheckInDate/{checkInDate/}"  &gt;
. . .
</eg>
				</example><p>

This would instead serialize to a request URI such as: <code>http://greath.example.com/2004/checkAvailability/bycheckInDate/5-5-5</code>. The rest of the message content would go to the HTTP message body.</p></div4></div3>
		<div3 id="adv-get-vs-post"><head>HTTP GET Versus POST: Which to Use?</head>
				<p> When a binding using HTTP  is specified for an operation, the WSDL 2.0 author must decide which HTTP method is appropriate to use -- usually a choice between GET and POST.  In the  context of the Web as a whole (rather than specifically Web services), the W3C Technical Architecture Group (TAG) has addressed the question of when it is appropriate to use GET, versus when to use POST, in a finding entitled <emph>URIs, Addressability, and the use of HTTP GET and POST</emph>  (<bibref ref="TAG-whenToUseGET"/>).   From the abstract:</p><p><quote><emph>. . . designers should adopt [GET] for safe operations such as simple queries. POST is appropriate for other types of applications where a user request has the potential to change the state of the resource (or of related resources). The finding explains how to choose between HTTP GET and POST for an application taking into account architectural, security, and practical considerations.</emph></quote></p><p>Recall that the concept of a safe operation was discussed in <specref ref="more-interfaces-op-attr"/>.  (Briefly, a safe operation is one that does not cause the invoker to incur new obligations.) Although the <code>wsdlx:safe</code> attribute of an interface operation indicates that the abstract operation is safe, it does not automatically cause GET to be used at the HTTP level when the binding is specified.   The choice of GET or POST is determined at the binding level: </p>
				
				<ulist>
				
				<item><p>If the WSDL 2.0 SOAP binding extension is used (<specref ref="more-bindings-soap"/>), with HTTP as the underlying transport protocol, then GET may be specified by setting:<glist><gitem><label><code>wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"</code></label><def><p>on the <code>binding</code> element (to indicate the use of HTTP as the underlying protocol); and</p></def></gitem><gitem><label><code>wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/"</code></label><def><p>on the binding <code>operation</code> element, which causes GET to be used by default.</p></def></gitem></glist> </p></item>
				<item><p>If the WSDL 2.0 HTTP binding extension is used directly (<specref ref="more-bindings-http"/>), GET may be specified by setting either:<glist><gitem><label><code>whttp:methodDefault="GET"</code></label><def><p>on the <code>binding</code> element; or</p></def></gitem><gitem><label><code>whttp:method="GET"</code></label><def><p>on the binding <code>operation</code> element, which overrides <code>whttp:methodDefault</code> if set on the <code>binding</code> element; or </p></def></gitem>
				<gitem><label><code>wsdlx:safe="true" </code></label><def><p> on the bound <code>interface operation </code>.  When the above two items are not explicitly set, and when the bound interface operation is marked safe, the HTTP Binding will by default set the method to GET.</p></def>
				
		</gitem>
								
				</glist></p></item></ulist>
<p>For example, in the GreatH interface definition shown in <specref ref="example-initial-interface"/>, the wsdlx:safe attribute is set to "true".  The HTTP binding definition in <specref ref="example-bindings-http"/> may take advantage of that and be simplified as below and still have the http method set to GET by default: </p>

<example id="example-binding-safety">
					<head>Safety and HTTP Binding</head>

<eg xml:space="preserve">
&lt;?xml version="1.0" encoding="utf-8" ?&gt;  

&lt;binding name="reservationHTTPBinding"

      interface="tns:reservationInterface"

      type="http://www.w3.org/2006/01/wsdl/http" &gt;

    &lt;operation ref="tns:opCheckAvailability"

        whttp:location="{checkInDate}"/&gt;

  &lt;/binding&gt;</eg>
				</example>
				
						
			</div3></div2>
		
</div1>	
		

<!-- **********************************AdvancedTopics***************** -->
<!-- **********************************AdvancedTopics***************** -->
		<div1 id="advanced-topic_ii">
			<head>Advanced Topics I: Importing Mechanisms</head>
			
				<div2 id="adv-import-and-authoring">
				<head>Importing WSDL</head>
				<p>
				In some circumstances WSDL authors may want to split up a Web service description into two or more documents.
				For example, if a description is getting long or is being developed by several authors, then it
				is convenient to divide it into several parts.
				Another very important case is when you expect parts of the description to be reused in several contexts.
				Clearly it is undesirable to cut and paste sections of one document into another, since that is error prone
				and leads to maintenance problems.
				More importantly, you may need to reuse components that belong to a wsdl:targetNamespace that is different than
				that of the document you are writing, in which case the rules of WSDL 2.0 prevent you from simply cutting and pasting them
				into your document.
				</p><p>To solve these problems,  
				WSDL 2.0 provides two mechanisms for modularizing Web service description documents: <code>import</code> and <code>include</code>. 
				This section discusses the import mechanism and describes some typical cases where it may be used.
				</p>
				
				<p>
				The <code>import</code> mechanism lets one refer to the definitions of Web service components that belong to other namespaces.
				To illustrate this, consider the GreatH hotel reservation service. Suppose that the reservation service uses a
				standard credit card validation service that is provided by a financial services company. Furthermore, suppose that
				companies in the financial services industry decided that it would be useful to report errors in credit card validation
				using a common set of faults, and have defined these faults in the following Web service description:
				</p>
				
				<example id="credit-card-faults">
					<head>Standard Credit Card Validation Faults (credit-card-faults.wsdl)</head>
					<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://finance.example.com/CreditCards/wsdl"
	xmlns:tns="http://finance.example.com/CreditCards/wsdl"
	xmlns:cc="http://finance.example.com/CreditCards/xsd"&gt;

  &lt;documentation&gt;
	This document describes standard faults for use 
      by Web services that process credit cards.
  &lt;/documentation&gt;

  &lt;types&gt;
	&lt;xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
	    namespace="http://finance.example.com/CreditCardFaults/xsd"
	    schemaLocation="credit-card-faults.xsd" /&gt;
  &lt;/types&gt;

  &lt;interface name="creditCardFaults"&gt;

	&lt;fault name="cancelledCreditCard" element="cc:CancelledCreditCard"&gt;
	    &lt;documentation&gt;Thrown when the credit card has been cancelled.&lt;/documentation&gt;
	&lt;/fault&gt;
		
	&lt;fault name="expiredCreditCard" element="cc:ExpiredCreditCard"&gt;
	    &lt;documentation&gt;Thrown when the credit card has expired.&lt;/documentation&gt;
	&lt;/fault&gt;
		
	&lt;fault name="invalidCreditCardNumber" element="cc:InvalidCreditCardNumber"&gt;
	    &lt;documentation&gt;Thrown when the credit card number is invalid.
		This fault will occur if the wrong credit card type is specified.
          &lt;/documentation&gt;
	&lt;/fault&gt;
		
	&lt;fault name="invalidExpirationDate" element="cc:InvalidExpirationDate"&gt;
	    &lt;documentation&gt;Thrown when the expiration date is invalid.&lt;/documentation&gt;
	&lt;/fault&gt;

  &lt;/interface&gt;

&lt;/description&gt;</eg>
				</example>
				
			<p>
			This example defines an interface, <code>creditCardFaults</code>, that contains four faults, <code>cancelledCreditCard</code>,
			<code>expiredCreditCard</code>, <code>invalidCreditCardNumber</code>, and <code>invalidExpirationDate</code>.
			These components belong to the namespace <code>http://finance.example.com/CreditCards/wsdl</code>.
			</p><p>Because these faults are defined in a different wsdl:targetNamespace than the one used by the GreatH Web service description, import must be used to make them available within the GreatH Web service description, as shown in the following example:
			</p>
			
			<example id="use-credit-card-faults">
				<head>Using the Standard Credit Card Validation Faults (use-credit-card-faults.wsdl)</head>
				<eg xml:space="preserve">&lt;?xml version="1.0"?&gt;
&lt;description
	targetNamespace="http://greath.example.com/2004/wsdl/resSvc"
	xmlns:ghns="http://greath.example.com/2004/schemas/resSvc"
	xmlns:cc="http://finance.example.com/CreditCards/wsdl"
	xmlns="http://www.w3.org/2006/01/wsdl"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		Description: The definition of the reservation Web service of
		GreatH hotel. Author: Joe Somebody Date: 05/17/2004
	&lt;/documentation&gt;
	
	&lt;import namespace="http://finance.example.com/CreditCards/wsdl" 
              location="credit-card-faults.wsdl"/&gt;
	. . .
	&lt;interface name="reservation" extends="cc:creditCardFaults"&gt;
		. . . 
		&lt;operation name="makeReservation"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;

			&lt;input messageLabel="In" element="ghns:makeReservation" /&gt;

			&lt;output messageLabel="Out"
				element="ghns:makeReservationResponse" /&gt;

			&lt;outfault ref="invalidDataFault" messageLabel="Out" /&gt;

			&lt;outfault ref="cc:cancelledCreditCard" messageLabel="Out" /&gt;
			&lt;outfault ref="cc:expiredCreditCard" messageLabel="Out" /&gt;
			&lt;outfault ref="cc:invalidCreditCardNumber" messageLabel="Out" /&gt;
			&lt;outfault ref="cc:invalidExpirationDate" messageLabel="Out" /&gt;
		&lt;/operation&gt;
	&lt;/interface&gt;
&lt;/description&gt;</eg>
			</example>
			
			<p>
				The hotel reservation service declares that it is using
				components from another namespace via the
				<code>import</code>&gt;
				element. The import element has a required
				<code>namespace</code>
				attribute that specifies the other namespace, and an
				optional
				<code>location</code>
				attribute that gives the processor a hint where to find
				the description of the other namespace. The
				<code>reservation</code>
				interface extends the
				<code>creditCardFault</code>
				interface from the other namespace in order to make the
				faults available in the reservation interface. Finally,
				the
				<code>makeReservation</code>
				operation refers to the standard faults in its
				<code>outfault</code>
				elements.
			</p>

			<p>
			Another typical situation for using imports is to define a standard interface that is to be implemented
			by many services. For example, suppose the hotel industry decided that it was useful to have a standard interface for
			making reservations. This interface would belong to some industry association namespace, e.g. <code>http://hotels.example.com/reservations/wsdl</code>. 
			Each hotel that implemented the standard reservation service
			would define a service in its own namespace, e.g. <code>http://greath.example.com/2004/wsdl/resSvc</code>.
			The description of each service would import the <code>http://hotels.example.com/reservations/wsdl</code> namespace and refer to the
			standard reservation interface in it.
			</p>
				
			</div2>
						<div2 id="adv-multiple-inline-schemas">
				<head>Importing Schemas</head>
				
				<p>
					WSDL 2.0 documents may contain one or more XML
					schemas defined within the
					<code>wsdl:types</code>
					element. This section illustrates the correct way to
					refer to these schemas, both from within the same
					document and from other documents.
				</p>

				<div3>
					<head>Schemas in Imported Documents</head>
					<p>
						In this example, we consider some GreatH Hotel
						Web services that retrieve and update
						reservation details. The retrieval Web service
						is defined in the
						<code>retrieveDetails.wsdl</code>
						WSDL 2.0 document, along with a schema for the
						message format. The updating Web service is
						defined in the
						<code>updateDetails.wsdl</code>
						WSDL 2.0 document which imports the first document
						and refers to both WSDL 2.0 and schema definitions
						contained in the imported document.
					</p>

					<p>
						<specref ref="retrieveDetails.wsdl"/>
						shows the definition of the retrieval Web
						service in the
						<code>
							http://greath.example.com/2004/services/retrieveDetails
						</code>
						namespace. This WSDL 2.0 document also
						contains an inline schema that describes the
						reservation detail in the
						<code>
							http://greath.example.com/2004/schemas/reservationDetails
						</code>
						namespace. This schema is visible to the
						<code>retrieveDetailsInterface</code>
						interface definition which refers to it in the
						<code>retrieve</code>
						operation's output message.
					</p>

					<example id="retrieveDetails.wsdl">
						<head>
							The Retrieve Reservation Details Web
							Service: retrieveDetails.wsdl
						</head>
						<eg xml:space="preserve">
							&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:tns="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:wdetails="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Retrieve Reservation Details
		Web service.
	&lt;/documentation&gt;

	&lt;types&gt;
		&lt;xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
			targetNamespace="http://greath.example.com/2004/schemas/reservationDetails"&gt;

			&lt;xs:element name="reservationDetails"&gt;
				&lt;xs:complexType&gt;
					&lt;xs:sequence&gt;
						&lt;xs:element name="confirmationNumber"
							type="string" /&gt;
						&lt;xs:element name="checkInDate" type="date" /&gt;
						&lt;xs:element name="checkOutDate" type="date" /&gt;
						&lt;xs:element name="roomType" type="string" /&gt;
						&lt;xs:element name="smoking" type="boolean" /&gt;
					&lt;/xs:sequence&gt;
				&lt;/xs:complexType&gt;
			&lt;/xs:element&gt;
		&lt;/xs:schema&gt;
	&lt;/types&gt;

	&lt;interface name="retrieveDetailsInterface"&gt;

		&lt;operation name="retrieve"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="#none" /&gt;
			&lt;output messageLabel="Out"
				element="wdetails:reservationDetails" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

&lt;/description&gt;
						</eg>
					</example>

					<p>
						<specref ref="updateDetails.wsdl"/>
						shows the definition of the updating Web service
						in the
						<code>
							http://greath.example.com/2004/services/updateDetails
						</code>
						namespace. The
						<code>updateDetailsInterface</code>
						interface extends the
						<code>retrieveDetailsInterface</code>
						interface. However, the
						<code>retrieveDetailsInterface</code>
						belongs to the
						<code>
							http://greath.example.com/2004/services/retrieveDetails
						</code>
						namespace, so <code>updateDetails.wsdl</code>
						must import <code>retrieveDetails.wsdl</code>
						to make that namespace visible.</p>
					<p>
						The
						<code>updateDetailsInterface</code>
						interface also uses the
						<code>reservationDetails</code>
						element definition that is contained in the
						inline schema of the imported
						<code>retrieveDetails.wsdl</code>
						document. However, this schema is not
						automatically visible within the
						<code>updateDetails.wsdl</code>
						document. To make it visible, the
						<code>updateDetails.wsdl</code>
						document must import the namespace of the inline
						schema within the
						<code>types</code>
						element using the XML schema
						<code>import</code>
						element.
					</p>
					<p>
						In this example, the
						<code>schemaLocation</code>
						attribute of the
						<code>import</code>
						element has been omitted. The
						<code>schemaLocation</code>
						attribute is a hint to the WSDL 2.0 processor that tells it where to
						look for the imported schema namespace.
						However, the WSDL 2.0 processor has already
						processed the
						<code>retrieveDetails.wsdl</code>
						document which contains the imported namespace
						in an inline schema so it should not need any hints. 
						However, this behavior depends on
						the implementation of the processor and so
						cannot be relied on.
					</p>
					<p>
						Although the WSDL 2.0 document may validly omit the
						<code>schemaLocation</code> attribute, it is a best practice to either provide a
						reliable value for
						it or move the inline schema into a separate
						document, say
						<code>reservationDetails.xsd</code>, and directly import it in the
						<code>types</code>
						element of both
						<code>retrieveDetails.wsdl</code>
						and
						<code>updateDetails.wsdl</code>. In general, schemas that are expected to be
						referenced from more than one WSDL 2.0 document
						should be defined in a separate schema document
						rather than be inlined.
					</p>

					<example id="updateDetails.wsdl">
<head>The Update Reservation Details Web Service: updateDetails.wsdl</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/updateDetails"
	xmlns:tns="http://greath.example.com/2004/services/updateetails"
	xmlns:retrieve="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Update Reservation Details
		Web service.
	&lt;/documentation&gt;

	&lt;import
		namespace="http://greath.example.com/2004/services/retrieveDetails"
		location="retrieveDetails.wsdl" /&gt;

	&lt;types&gt;
		&lt;xs:import
			namespace="http://greath.example.com/2004/schemas/reservationDetails" /&gt;
	&lt;/types&gt;

	&lt;interface name="updateDetailsInterface"
		extends="retrieve:retrieveDetailsInterface"&gt;

		&lt;operation name="update"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In"
				element="details:reservationDetails" /&gt;
			&lt;output messageLabel="Out"
				element="details:reservationDetails" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

&lt;/description&gt;</eg>
</example>

				</div3>

				<div3>
					<head>Multiple Inline Schemas in One Document</head>
					<p>
						A WSDL 2.0 document may define multiple inline
						schemas in its
						<code>types</code>
						element. The two or more schemas may have the
						same target namespace provided that they do not
						define the same elements or types. It is an
						error to define the same element or type more
						than once, even if the definitions are
						identical.
					</p>
					<p>
						Each namespace of an inline schema becomes visible to the Web
						service definitions. However, the namespaces are
						not automatically visible to the other inline
						schemas. Each inline schema must explicitly
						import any other namespace it references. The
						<code>schemaLocation</code>
						attribute is not required in this case since the
						WSDL 2.0 processor knows the location of each schema
						by virtue of having processed the enclosing WSDL 2.0
						document.
					</p>
					<p>
						To illustrate this, consider
						<specref ref="retrieveItems.wsdl"/>
						which contains two inline schemas. The
						<code>
							http://greath.example.com/2004/schemas/reservationItems
						</code> namespace
						contains some elements for items that appear in
						the reservation details. The
						<code>
							http://greath.example.com/2004/schemas/reservationDetails
						</code>
						namespace contains the
						<code>reservationDetails</code>
						element which refers to the item elements. The schema for the
						<code>
							http://greath.example.com/2004/schemas/reservationDetails
						</code>
						namespace contains an
						<code>import</code>
						element that imports the
						<code>
							http://greath.example.com/2004/schemas/reservationItems
						</code>
						namespace. No
						<code>schemaLocation</code>
						attribute is required for this import since the
						schema is defined inline in the importing
						document.
					</p>

					<example id="retrieveItems.wsdl">
						<head>
							Multiple Inline Schemas: retrieveItems.wsdl
						</head>
						<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:tns="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:wdetails="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Retrieve Reservation Details
		Web service.
	&lt;/documentation&gt;

	&lt;types&gt;

		&lt;xs:schema targetNamespace="http://greath.example.com/2004/schemas/reservationItems"&gt;

			&lt;xs:element name="confirmationNumber" type="string" /&gt;
			&lt;xs:element name="checkInDate" type="date" /&gt;
			&lt;xs:element name="checkOutDate" type="date" /&gt;
			&lt;xs:element name="roomType" type="string" /&gt;
			&lt;xs:element name="smoking" type="boolean" /&gt;

		&lt;/xs:schema&gt;

		&lt;xs:schema targetNamespace="http://greath.example.com/2004/schemas/reservationDetails"
			xmlns:items="http://greath.example.com/2004/schemas/reservationItems"&gt;

			&lt;xs:import
				namespace="http://greath.example.com/2004/schemas/reservationItems" /&gt;

			&lt;xs:element name="reservationDetails"&gt;
				&lt;xs:complexType&gt;
					&lt;xs:sequence&gt;
						&lt;xs:element ref="items:confirmationNumber" /&gt;
						&lt;xs:element ref="items:checkInDate" /&gt;
						&lt;xs:element ref="items:checkOutDate" /&gt;
						&lt;xs:element ref="items:roomType" /&gt;
						&lt;xs:element ref="items:smoking" /&gt;
					&lt;/xs:sequence&gt;
				&lt;/xs:complexType&gt;
			&lt;/xs:element&gt;
		&lt;/xs:schema&gt;

	&lt;/types&gt;

	&lt;interface name="retrieveDetailsInterface"&gt;

		&lt;operation name="retrieve"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="#none" /&gt;
			&lt;output messageLabel="Out"
				element="wdetails:reservationDetails" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

&lt;/description&gt;</eg>
					</example>
				</div3>

			<div3 id="adv-schema-location"><head>The schemaLocation Attribute</head>

<p>
In the preceding examples, schemas were defined inline in WSDL 2.0 documents. This section discusses the correct way to specify a <code>schemaLocation</code>
attribute on a schema <code>import</code> element to provide a processor with a hint for locating these schemas.
</p>
<p>
<specref ref="updateDetails.wsdl"/> shows how one WSDL 2.0 document imports a schema defined in another, i.e. <specref ref="retrieveDetails.wsdl"/>.
Similarly, <specref ref="retrieveItems.wsdl"/> shows how one schema in a WSDL 2.0 document imports another schema defined in the same document.
In both of these examples, the <code>schemaLocation</code> attribute was omitted since the WSDL 2.0 processor was assumed to know how to locate the imported
schemas because they were part of the WSDL 2.0 documents being processed. The <code>schemaLocation</code> attribute can be used to give the processor a URI reference
that explicitly locates the schemas. A URI reference is a URI plus an optional fragment identifier that indicates part of the resource. For schemas, the fragment should identify
the <code>schema</code> element. The simplest way to accomplish this is to use the <code>id</code> attribute, however XPointer (see <bibref ref="XPTR"/>) can also be used.
</p><div4><head>Using the id Attribute to Identify Inline
						Schemas</head><p>
						<specref ref="schemaIds.wsdl"/>
						shows the use of the
						<code>id</code>
						attribute. Both of the inline schemas have
						<code>id</code>
						attributes. 
The id of the <code>http://greath.example.com/2004/schemas/reservationItems</code> schema is <code>items</code> and the id of the 
<code>http://greath.example.com/2004/schemas/reservationDetails</code> schema is <code>details</code>.
The
						<code>import</code>
						element in the <code>http://greath.example.com/2004/schemas/reservationDetails</code> schema uses the id of the
						<code>http://greath.example.com/2004/schemas/reservationItems</code> schema in the
						<code>schemaLocation</code>
						attribute, i.e. <code>#items</code>.
					</p>
<example id="schemaIds.wsdl"><head>Using Ids in Inline Schemas: schemaIds.wsdl</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:tns="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:wdetails="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Retrieve Reservation Details
		Web service.
	&lt;/documentation&gt;

	&lt;types&gt;

		&lt;xs:schema id="items"
			targetNamespace="http://greath.example.com/2004/schemas/reservationItems"&gt;

			&lt;xs:element name="confirmationNumber" type="string" /&gt;
			&lt;xs:element name="checkInDate" type="date" /&gt;
			&lt;xs:element name="checkOutDate" type="date" /&gt;
			&lt;xs:element name="roomType" type="string" /&gt;
			&lt;xs:element name="smoking" type="boolean" /&gt;

		&lt;/xs:schema&gt;

		&lt;xs:schema id="details"
			targetNamespace="http://greath.example.com/2004/schemas/reservationDetails"
			xmlns:items="http://greath.example.com/2004/schemas/reservationItems"&gt;

			&lt;xs:import
				namespace="http://greath.example.com/2004/schemas/reservationItems"
				schemaLocation="#items" /&gt;

			&lt;xs:element name="reservationDetails"&gt;
				&lt;xs:complexType&gt;
					&lt;xs:sequence&gt;
						&lt;xs:element ref="items:confirmationNumber" /&gt;
						&lt;xs:element ref="items:checkInDate" /&gt;
						&lt;xs:element ref="items:checkOutDate" /&gt;
						&lt;xs:element ref="items:roomType" /&gt;
						&lt;xs:element ref="items:smoking" /&gt;
					&lt;/xs:sequence&gt;
				&lt;/xs:complexType&gt;
			&lt;/xs:element&gt;
		&lt;/xs:schema&gt;

	&lt;/types&gt;

	&lt;interface name="retrieveDetailsInterface"&gt;

		&lt;operation name="retrieve"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="#none" /&gt;
			&lt;output messageLabel="Out"
				element="wdetails:reservationDetails" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

&lt;/description&gt;</eg></example></div4></div3></div2>
			
</div1>
			
<div1 id="advanced-topic_iii">
			<head>Advanced Topics II: Extensibility and Predefined Extensions</head>

			<div2 id="adv-extensibility">
				<head>Extensibility</head>
			<p>WSDL 2.0 provides two extensibility mechanisms: an open content model, which allows XML elements and attributes from other (non-WSDL 2.0)  XML namespaces to be interspersed in a WSDL 2.0 document; and <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#Feature" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Features</xspecref> and <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#Property" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Properties</xspecref>.   Both mechanisms use URIs to identify the semantics of the extensions.  For extension XML elements and attributes, the namespace URI of the extension element or attribute acts as an unambiguous name for the semantics of that extension.  For Features and Properties, the Feature or Property is named by a URI.</p><p>In either case, the URI that identifies the semantics of an extension should be dereferenceable to a document that describes the semantics of that extension.  As of this writing, there is no generally accepted standard for what kind of document that should be.  However, the <loc href="http://www.w3.org/2001/tag/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C TAG</loc> has been discussing the issue (see TAG issue <loc href="http://www.w3.org/2001/tag/issues.html?type=1#namespaceDocument-8" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">namespaceDocument-8</loc>) and is likely to provide guidance at some point.</p><div3 id="adv-optional-versus-required"><head>Optional Versus Required Extensions</head><p>Extensions can either be required or optional.</p><p>An <emph>optional</emph> extension is one that the client may either engage or ignore, entirely at its discretion, and is signaled by attribute <code>wsdl:required="false"</code> or the absence of the <code>wsdl:required</code> attribute (because it defaults to false).   Thus, a WSDL 2.0 processor, acting on behalf of the client, that encounters an unknown optional extension can safely ignore it and continue to process the WSDL 2.0 document.  However, it is important to stress that optional extensions are only optional  to the <emph>client</emph> -- not the service.  A service must support all optional and required extensions that it advertises in its WSDL 2.0 document.  </p><p>A <emph>required</emph> extension is one that must be supported and engaged by the client in order for the interaction to proceed properly, and is signaled by attribute <code>wsdl:required="true"</code>.   If a WSDL 2.0 processor, acting on behalf of the client, encounters a required extension that it does not recognize or does not support, then it cannot safely continue to process the WSDL 2.0 document.  In most practical cases, this is likely to mean that the processor will require manual intervention to deal with the extension.  For example, a client developer might manually provide an implementation for the required extension to the WSDL 2.0 processor.  </p></div3>
			
			<!-- removed per minutes 5-12-2005 AI div3 id="adv-scope-of-wsdl-required"><head>Scoping of the wsdl:required Attribute</head><ednote><name>dbooth</name><date>2005-04-15</date><edtext>ToDo: Need to check the scoping rules to see if this is correct.</edtext></ednote><p>As a convenience mechanism, the <code>wsdl:required</code> attribute need not be specified on every extension element.  If it is omitted from an extension element, its effective value is inherited from the smallest enclosing scope that explicitly sets its value.  If there is no enclosing scope that explicitly sets its value, then its value defaults to <code>false</code>.  </p><p>Because portions of a Web service description  can be written in different physical documents by different people, one  should be cautious about setting <code>wsdl:required="false"</code> when an outer scope, written by someone else, had set <code>wsdl:required="true"</code>.</p></div3 -->

</div2>
			
			
			<div2 id="adv-FP">
				<head>Features and Properties</head>

							<ednote>
					<name>KevinL</name>
					<date>20050519</date>
					<edtext>
						The section is subject to change. Pending on the resolution of the minority opinions filed about Feature and Property.
					</edtext>
				</ednote>
				<p>After a few successful trials of the reservation service, GreatH decides that it is time to make the makeReservation operation secure, so that sensitive credit-card information is not being sent across the public network in a snoopable fashion.  We will do this using the WSDL 2.0 Features and Properties mechanisms <bibref ref="WSDL-PART1"/>, which is modeled after the Features and Properties mechanism defined in SOAP 1.2 <bibref ref="SOAP12-PART1"/>.</p><p>To facilitate presentation, this section will assume the existence of a hypothetical security feature named "<code>http://features.example.com/2005/securityFeature</code>", which defines, in the abstract, the idea of message confidentiality.  This feature has an associated property, named "<code>http://features.example.com/2005/securityFeature/securityLevel</code>", which defines various safety levels (from 0 meaning clear text, all the way through 10, involving  highly complex cryptographic algorithms with keys in the tens of thousands of bits).  We also assume that a SOAP module (for more about SOAP module, see <loc href="http://www.w3.org/TR/soap12-part1/#soapmodules" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest"> SOAP1.2 spec</loc> and <specref ref="adv-FP-soap-modules"/>), named "<code>http://features.example.com/2005/modules/Security</code>", has been defined, which implements the security feature described above.</p><p>GreatH has chosen an abstract security feature which is standard in the fictitious hotels community, and has integrated both a SOAP module and a new secure HTTP binding into its infrastructure – both of which implement the security feature (the SOAP module does this inside the SOAP envelope using headers, and the secure binding does it at the transport layer).  Now they'd like to advertise and control the usage of these extensions using WSDL 2.0.</p>

			<div3 id="adv-FP-soap-modules"><head>SOAP Modules</head><p>The first step GreatH takes is to require the usage of the SOAP module in their normal SOAP/HTTP endpoint, which looks like this:</p><example id="example-fp-requiring-soap-module">
					<head>Requiring a SOAP Module in an Endpoint</head>
					<eg xml:space="preserve">

. . .
&lt;service name="reservationService" 
       interface="tns:reservationInterface"&gt;

  &lt;endpoint name="reservationEndpoint" 
            binding="tns:reservationSOAPBinding"
            address ="http://greath.example.com/2004/reservation"&gt;
    &lt;wsoap:module uri="http://features.example.com/2005/modules/Security"
              required="true"/&gt;
  &lt;/endpoint&gt;
        
&lt;/service&gt;
. . .
</eg>
				</example><p>This syntax indicates that a SOAP Module is required by this endpoint.  This means that anyone using this endpoint must both  understand the specification that the module URI references, and must use that specification when communicating with the endpoint in question, which typically means including appropriate SOAP headers on transmitted messages.

</p><p>If the "required" attribute was not present, or if it was set to "<code>false</code>", then the <code>&lt;wsoap:module&gt;</code> syntax would indicate optional the availability of the referenced module, rather than a requirement to engage it, as explained in <specref ref="adv-optional-versus-required"/>.</p></div3><div3 id="adv-FP-abstract-features"><head>Abstract Features</head><p>Since GreatH began the web service improvements, they have been talking to several travel agents.  The possibility of making their simple hotel interface an industry standard amongst a consortium of hotels has come up, and as such they would like to enable specifying the requirement for the "makeReservation" operation to be secure at the interface level – in other words indicating that the operation must be secure, but without specifying exactly how that should concretely be achieved (to enable maximal reuse of the interface).  The next example uses the WSDL 2.0 Feature element to indicate this.</p><example id="example-fp-declaring-abstract-feature">
					<head>Declaring an Abstract Feature Requirement</head>
					<eg xml:space="preserve">
. . .
&lt;interface name="reservationInterface"&gt;
 &lt;operation name="makeReservation"&gt;
  &lt;feature uri="http://features.example.com/2005/securityFeature"
           required="true"/&gt;
  . . . [The rest of the operation is unchanged] . . .
 &lt;/operation&gt;
&lt;/interface&gt;
. . .</eg>
				</example><p>This declaration indicates that understanding of, and compliance with, the specified security feature is required for all uses of the "makeReservation" operation.  The security feature is <emph>abstract</emph>, which means that although it defines semantics and a level of detail about its general operation, it expects a concrete component (like a SOAP module or binding) to actually realize the functionality.</p><p>By definition, if you understand a SOAP module, you understand which (if any) abstract features it implements.  Therefore, since the security module in this example is defined as an implementation of the abstract security feature, we know that the use of this module satisfies the requirement to implement the feature.  Therefore users of the HTTP endpoint shown above (with the required SOAP module) will be able to make use of it.  GreatH also defines a new endpoint:</p><example id="example-fp-soap-over-shttp">
					<head>A SOAP Binding Over a Secure HTTP Protocol</head>
					<eg xml:space="preserve">
. . .
&lt;binding name="reservationSecureSOAPBinding"
    interface="tns:reservationInterface"
    type="http://www.w3.org/2006/01/wsdl/soap"
    wsoap:protocol="http://bindings.example.com/SOAPBindings/secureHTTP"&gt;
  . ..
&lt;/binding&gt;
. . .
&lt;service name="reservationService"&gt;
  . . .
  &lt;endpoint name="secureReservationEndpoint"
            binding="tns:reservationSecureSOAPBinding"
            address="https://greath.example.com/2004/secureReservation"/&gt;
&lt;/service&gt;
. . .</eg>
				</example><p>The user will have a choice as to which of the endpoints, and therefore which binding, is to be used, but they both satisfy the abstract feature requirement specified in the interface.</p><p>Note that it is not necessary to declare the abstract feature in order to use/require the SOAP module, or in order to use/require the secure binding.  Abstract feature declarations serve purely to indicate requirements which must be fulfilled by more concrete components such as modules or bindings.  In other words, the abstract feature declaration allows components such as interfaces to be reused without caring exactly which SOAP modules or bindings satisfy the feature.</p></div3><div3 id="adv-fp-properties"><head>Properties</head><p>So far we've discussed how to indicate the availability or the "requiredness" of features and modules.  Often it is not enough to indicate that a particular extension is available/required: you also need some way to control or parameterize aspects of its behavior.  This is achieved by the use of WSDL 2.0 <emph>properties</emph>.  Each feature, SOAP module, or SOAP binding may express a variety of <emph>properties</emph> in its specification.  These properties are very much like variables in a programming language.  If GreatH would like to indicate that the <code>securityLevel</code> property should be 5 for the "makeReservation" operation, it would look like this:</p><example id="example-fp-def-prop">
					<head>Defining a Property</head>
					<eg xml:space="preserve">
. . .
&lt;interface name="reservationInterface"&gt;
 &lt;operation name="makeReservation"&gt;
  &lt;property
      uri="http://features.example.com/2005/securityFeature/securityLevel"&gt;
   &lt;value&gt;5&lt;/value&gt;
  &lt;/property&gt;
  . . . [rest of operation definition] . . .
 &lt;/operation&gt;
&lt;/interface&gt;
. . .</eg>
				</example><p>The <code>property</code> element specifies which property is to be set.  By setting the <code>value</code> element, a toolkit processing this WSDL 2.0 document is informed that the securityLevel property must be set to 5.   The particular meanings of any such values are up to the implementations of the modules/bindings that use them.  The <code>property</code> element can be placed at many different levels in a WSDL 2.0 document (see "Property Composition Model" section in WSDL 2.0 Part 1 <bibref ref="WSDL-PART1"/>).
</p><p>It is also possible to provide a <emph>constraint</emph> on the value space for a given property.  This allows the author of the WSDL 2.0 document to indicate that several valid values for the property are possible for a given scope, limiting the value space already described in the specification that defined the property.  Let's extend our  example to make this clearer.</p><p>The security feature specification defines securityLevel as an integer with values between 1 and 10, each of which indicates, according to the spec, a progressively higher level of security.  The GreatH service authors, having read the relevant specifications, have decided that any security level between 3 and 7 will be supported by their infrastructure.  Levels less than 3 are deemed unsafe for GreatH's purposes, and levels greater than 7 require too much in the way of resources to make it worthwhile.  We can express this in WSDL 2.0 as follows:</p><example id="example-fp-def-prop-constraints">
					<head>Defining Property Constraints</head>
					<eg xml:space="preserve">
. . .
&lt;types&gt;
 &lt;schema&gt;
  &lt;simpleType name="securityLevelConstraint"&gt;
   &lt;restriction base="xs:int"&gt;
    &lt;min 3, max 7&gt; &lt;!-- check schema for syntax --&gt;
   &lt;/restriction&gt;
  &lt;/simpleType&gt;
 &lt;/schema&gt;
&lt;/types&gt;
. . .
&lt;property uri="http://features.example.com/2005/securityFeature/securityLevel"&gt;
  &lt;constraint type="tns:securityLevelConstraint"/&gt;
&lt;/property&gt;
. . .
</eg>
				</example><p>First we define, in the <code>types</code> section, an XML Schema restriction type over integers with minimum and maximum values, per our discussion above.  Then instead of using the <code>value</code> element inside <code>property</code>, we use <code>constraint</code> and refer to the restriction type.  This informs the implementation that the property must have the appropriate values.  This information might be useful to a deployment user interface, for example, which might allow an administrator to set this value with a slider when deploying the service.</p></div3></div2>
								
				
				<div2 id="adv-MEP">
<head>Defining New MEPs</head>

<p>As we mentioned in <specref ref="more-interfaces-meps"/>, even though the 8 MEPs defined by WSDL 2.0 are intended to cover most of the common use cases, there are situations that require new MEPs to be defined. In this section, we will explain how new MEPs can be defined to address special business requirements.</p>

<p>Following the wild success of its reservation service, GreatH discovered
that it could radically increase tourist interest by supplying information
on weather conditions, both to travel agents and to the general touring
public.  This produced a challenge for the service implementers: how could
this information be supplied to interested parties without requiring
knowledge of web service technology specifically, and of computers
generally?  At issue was the desire to provide asynchronous updates to
unsophisticated customers without incurring onerous overheads for technical
support.</p>

<p>The solution adopted was to create a standard mailing
list, and to make available a small cross-platform web service client
(actually, a subscriber) that could be installed on any computer with POP or
IMAP access to a mailbox.  The mailbox, once signed up for the mailing list,
could either be processed as "dedicated" (to the GreatH weather service;
travel agents did this) or as "general purpose" (in which case the
application would only examine those emails that contained Subject headers
associated with the service).  This required development of a binding to
email, which is out of scope for this example, but the resulting WSDL 2.0 was
otherwise quite straightforward.</p>

<p>Note: the email binding in use here supports publish/subscribe, by
supporting the robust-out-only MEP as well as the client/server style in-out
used for subscribing and unsubscribing.  Details of this binding would
require a document as long as the primer, so play along.</p>

<example id="weather-not-initial">
<head>Weather Notification Service (Initial)</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
      targetNamespace="http://greath.example.com/2004/wsdl/weathSvc.wsdl"
      xmlns:tns="http://greath.example.com/2004/wsdl/weathSvc.wsdl"
      xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
      xmlns:email="http://www.example.com/webservices/email" &gt;

    &lt;types&gt;
        . . .
    &lt;/types&gt;

    &lt;interface name="weatherInterface"&gt;
        &lt;operation name="opSubscribeWeather"
                   pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
            &lt;input element=". . ." /&gt;
            &lt;output element=". . ." /&gt;
        &lt;/operation&gt;
        &lt;operation name="opUnsubscribeWeather"
                   pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
            &lt;output element=". . ." /&gt;
            &lt;input element=". . ." /&gt;
        &lt;/operation&gt;
        &lt;operation name="opNotifyWeather"
                   pattern="http://www.w3.org/2006/01/wsdl/robust-out-only"&gt;
            &lt;output element=". . ." /&gt;
        &lt;/operation&gt;
    &lt;/interface&gt;

    &lt;binding name="weatherMailingListBinding"
             interface="tns:weatherInterface
             type="http://www.w3.org/2006/01/wsdl/soap"
             wsoap:protocol="http://www.example.com/bindings/email"&gt;
             . . .
    &lt;/binding&gt;

    &lt;service name="weatherService"
             interface="tns:weatherInterface"&gt;
        &lt;endpoint name="greatHWeatherList"
                  binding="tns:weatherMailingListBinding"
                  address="mailto:weather-owner@greath.example.com" /&gt;
    &lt;/service&gt;

&lt;/description&gt;
</eg></example>

<p>Note: in the example, the messageLabels of all input and output elements
have been elided, as they are not necessary to disambiguate (but note that
the order of input and output elements is not significant).</p>

<p>Unfortunately, the service was soon highjacked for the
purpose of annoyment.  Repeatedly, hotels in less salubrious climes, and the
victims of various natural climactic disasters (hurricanes, tornadoes) found
themselves signed up to receive material full of incomprehensible pointy
brackets.  They complained to GreatH, who complained to their service
designers.</p>

<p>Applying public key infrastructure to solving
the problem was immediately rejected as too complex and too heavyweight. 
Analysis showed that the problem was simply to verify that the address
requesting information actually wanted that information.  Consequently, a
new message exchange pattern was defined.</p>

<div3 id="challenge-confirm">
<head>Confirmed Challenge</head>
<p>This pattern consists of two or more messages in order as follows:</p>
<olist>
  <item><p>A message:</p>
    <ulist>
      <item><p>indicated by a Message Label component whose
message label is <attval>Request</attval> and
direction is <attval>in</attval></p></item>
      <item><p>received from some node N1</p></item>
    </ulist>
  </item>
  <item><p>A message:</p>
    <ulist>
      <item><p>indicated by a Message Label component whose message label is
<attval>Challenge</attval> and direction is <attval>out</attval></p></item>
      <item><p>sent to some node N2 (which <emph>may</emph> be the same
node as N1)</p></item>
    </ulist>
  </item>
  <item><p>An optional message:</p>
    <ulist>
      <item><p>indicated by a Message Label component whose message label is
<attval>Confirmation</attval> and direction is <attval>in</attval></p></item>
      <item><p>received from node N2</p></item>
    </ulist>
  </item>
  <item><p>An optional message:</p>
    <ulist>
      <item><p>indicated by a Message Label component whose message label is
<attval>Response</attval> and direction is <attval>out</attval></p></item>
      <item><p>sent to node N2</p></item>
    </ulist>
  </item>
</olist>
<p>This pattern uses the rule Message Triggers Fault.</p>
<p>An operation using this message exchange pattern has a pattern property with
the value <attval>http://www.example.com/webservices/meps/confirmed-challenge</attval>.</p>

<p>Once the MEP had been defined (and the email binding specification
appropriately modified to indicate that this was a supported MEP), the
service was redefined and redeployed.  Only the changed operations are shown
in the excerpt below.</p>

<example id="weather-not-final">
<head>Weather Notification Service (Revised)</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description xmlns="http://www.w3.org/2006/01/wsdl"
      targetNamespace="http://greath.example.com/2004/wsdl/weathSvc.wsdl"
      xmlns:tns="http://greath.example.com/2004/wsdl/weathSvc.wsdl"
      xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
      xmlns:email="http://www.example.com/webservices/email" &gt;

   . . .

    &lt;interface name="weatherInterface"&gt;
        &lt;operation name="opSubscribeWeather"
                   pattern="http://www.example.com/webservices/meps/confirmed-challenge"&gt;
            &lt;input messageLabel="Request" element=". . ." /&gt;
            &lt;output messageLabel="Challenge" element=". . ." /&gt;
            &lt;input messageLabel="Confirmation" element=". . ." /&gt;
            &lt;output messageLabel="Response" element=". . ." /&gt;
        &lt;/operation&gt;
        &lt;operation name="opUnsubscribeWeather"
                   pattern="http://www.example.com/webservices/meps/confirmed-challenge"&gt;
            &lt;output messageLabel="Challenge" element=". . ." /&gt;
            &lt;output messageLabel="Response" element=". . ." /&gt;
            &lt;input messageLabel="Confirmation" element=". . ." /&gt;
            &lt;input messageLabel="Request" element=". . ." /&gt;
        &lt;/operation&gt;
        . . .
    &lt;/interface&gt;

    . . .

&lt;/description&gt;
</eg></example>

<p>Note: in the second example, the input and output examples are not in the
sequence in which they occur in the pattern; this illustrates that the
sequence is not significant.  Note, however, that for this pattern, the
messageLabel attribute is required on every input and output element.</p>
</div3>

</div2><!-- adv-MEP -->

			<div2 id="adv-RPCstyle">
				<head>RPC Style</head>
			<p>Section <specref ref="more-interfaces-op-attr"/> mentioned that the (optional) <code>style</code> attribute of an interface operation is used to indicate that the operation conforms to a particular pre-defined operation style, or set of constraints.  Actually, if desired the <code>style</code> attribute can hold a list of URIs, indicating that the operation simultaneously conforms to multiple styles.</p><p>Operation styles are named using URIs, in order to be unambiguous while still permitted new  styles to be defined without requiring updates to the WSDL 2.0 language.   WSDL 2.0 Part 2 <bibref ref="WSDL-PART2"/>  defines three such operation styles; one of these is the RPC Style (<xspecref href="http://www.w3.org/2002/ws/desc/wsdl20-adjuncts#RPCStyle" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">RPC Style</xspecref>).</p><p>The <emph>RPC Style</emph> is designed to facilitate programming language
bindings to WSDL 2.0 constructs.   It allows a WSDL 2.0 interface
operation to be easily mapped to a method or function signature, such as a method signature in
Java(TM) or C#.     RPC Style is restricted to operations that use the In-Out or In-Only MEPs (see <specref ref="more-interfaces-meps"/>).</p><p>A WSDL 2.0 document makes use of the RPC Style in an interface operation by first defining the operation in conformance with all of the RPC Style rules, and then setting that operation's <code>style</code> attribute to include the URI that identifies the RPC Style, thus asserting that the operation does indeed conform to the RPC Style.  These rules permit the input and output message schemas to map conveniently to inputs and outputs of a method signature.  Roughly, input elements map to input parameters, output elements map to output parameters, and elements that appear both in the input and output message schemas map to input/output parameters.  WSDL 2.0 Part 2 section "<xspecref href="http://www.w3.org/2002/ws/desc/wsdl20-adjuncts#RPCStyle" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">RPC Style</xspecref>" provides full details of the mapping rules and requirements.</p><p>The RPC Style also permits the full signature of the intended mapping to be indicated explicitly, using the <code>wrpc:signature</code> attribute defined in WSDL 2.0 Part 2 section "<xspecref href="http://www.w3.org/2002/ws/desc/wsdl20-adjuncts" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">wrpc:signature Extension</xspecref>". This is an (optional) extension to the WSDL 2.0 language whose  value designates how input and output message schema elements map to input and output parameters in the method signature. </p><p>The example below illustrates how RPC Style may be used to designate a
signature. This example is a modified version of the GreatH reservation
service.  In particular, the <code>interface</code> and <code>types</code> sections have been modified to specify and conform to the RPC Style.</p><example id="example-rpc-style">
					<head>Specifying RPC Style </head>

<eg xml:space="preserve">. . .
&lt;types&gt;

  &lt;xs:element name="checkAvailability"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element  name="checkInDate" type="xs:date"/&gt;
          &lt;xs:element  name="checkOutDate" type="xs:date"/&gt;
          &lt;xs:element  name="roomType" type="xs:string"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="checkAvailabilityResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
         &lt;xs:element  name="roomType" type="xs:string"/&gt;
         &lt;xs:element  name="rateType" type="xs:string"/&gt;
         &lt;xs:element  name="rate" type="xs:double"/&gt;
     &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  . . .
&lt;/types&gt;

&lt;interface  name = "reservationInterface" &gt;

  &lt;operation name="checkAvailability"
        pattern="http://www.w3.org/2006/01/wsdl/in-out"
        style="http://www.w3.org/2006/01/wsdl/rpc"
        wrpc:signature=
          "checkInDate #in checkOutDate #in roomType #inout rateType #out rate #return"&gt;
    &lt;input messageLabel="In"
          element="tns:checkAvailability" /&gt;
    &lt;output messageLabel="Out"
          element="tns:checkAvailabilityResponse" /&gt;

  &lt;/operation&gt;
. . .
&lt;/interface&gt;
. . .</eg></example><p>Note that the interface operation's name "<code>checkAvailability</code>", is the
same as the localPart of the input element's QName,
"<code>tns:checkAvailability</code>".  This is one of the requirements of the RPC Style. The name of the operation is
used as the name of the method in a language binding,
subject to further mapping restrictions specific to the target
programming language. In this case, the name of the method would be
"<code>checkAvailability</code>".</p><p>The local children elements of the input element and output element
designate
the parameters and the return type for a method call. Note that the
elements <code>checkInDate</code>, <code>checkOutDate</code> are input parameters, however the
element <code>roomType</code> is an in-out parameter, as it appears both as a local
element child of both input and output elements.  This indicates that the reservation system may change the room type
requested based on availability. </p><p>The reservation service also returns a rate type for the reservation, such as "rack rate". The return value for the method is designated as the
"rate" element.</p><p>Based on the value of the <code>wrpc:signature</code> attribute, the method signature would be obtained following the order of the parameters. A sample
mapping is provided below for the Java(TM) language. This example was created using  JAX RPC 1.1 <bibref ref="jaxrpc"/>
for mapping simple types to Java types and
designated inout and output parameters by using Holder classes.</p><example id="example-rpc-style-java-sig">
					<head>Sample Java(TM) Signature for   RPC Style</head>

<eg xml:space="preserve">public interface reservationInterface extends Remote{

   double checkAvailability(java.util.calendar checkInDate,
              java.util.calendar checkOutDate,
              StringHolder roomType, 
              StringHolder rateType) throws RemoteException; 
    . . .
}
</eg></example><p>Programming languages may further specify how faults are mapped to
language constructs and their scopes, such as Exceptions, but they
are not specific to RPC style.</p></div2>
							

			
			<div2 id="adv-MTOM"><head>MTOM and Attachments Support</head>
								
					
<!-- =============== -->
<p>Unlike WSDL 1.1 which defines a MIME binding for attachments support, WSDL 2.0 supports MIME attachments via the SOAP Message Transmission Optimization Mechanism  (MTOM) <bibref ref="SOAP-MTOM"/>. This section shows how MTOM may be engaged in the WSDL 2.0 SOAP binding extension.</p>

<p>We will modify the <code>CheckAvailability</code> operation of the GreatH Hotel Reservation Service (<specref ref="example-initial"/>) to return not only the room rate, but images of the room and the floorplan.  This will involve modifying the <code>checkAvailabilityResponse</code> data structure to include binary data representing these two images, indicated by the <code>xs:base64Binary</code> data type.  Here is an example:</p>

 				<example id="example-MTOM-schema">
					<head>XML Schema with Optimizable Elements </head>

<eg xml:space="preserve">. . .
&lt;xs:element name="checkAvailabilityResponse"&gt;

  &lt;xs:sequence&gt;

    &lt;xs:element name="rate" type="xs:double"/&gt;

    &lt;xs:element name="photo"
        type="xmime:base64Binary"
        xmime:expectedContentType="image/jpeg image/png" /&gt;

    &lt;xs:element name="floorplan"
        xmime:expectedContentType="image/svg"&gt;
      &lt;xs:simpleContent&gt;
        &lt;xs:restriction base="xs:base64Binary"&gt;
          &lt;xs:attribute ref="xmime:contentType"
                fixed="image/svg" /&gt;
        &lt;/xs:restriction&gt;
      &lt;/xs:simpleContent&gt;
    &lt;/xs:element&gt;

  &lt;/xs:sequence&gt;

&lt;/xs:element&gt;
. . .

 </eg></example>

 				<p>
 					Note the use of the
 					<code>xmime:expectedContentType</code>
 					and
 					<code>xmime:contentType</code>
 					attributes to declare the expected media type of
 					the encoded data and to allow the client to
 					indicate the type at runtime, respectively. These
 					attributes are defined in
 					<bibref ref="DESCRIBEMEDIA"/>. Also note that, when using the WSDL HTTP Binding, an
    implementation MAY use incoming HTTP Accept headers to choose
    between alternative media types listed in
    xmime:expectedContentType.

 				</p>

 				<p>A <code>checkAvailabilityResponse</code> message conforming to this schema might look like this:</p>

 				<example id="example-MTOM-soap-message">
					<head>Non-optimized SOAP Message with Embedded Binary Data </head>

<eg xml:space="preserve">

&lt;soap:Envelope
    xmlns:soap='http://www.w3.org/2003/05/soap-envelope' 
    xmlns:xmime='http://www.w3.org/2005/05/xmlmime'&gt;

  &lt;soap:Body&gt;
    &lt;g:checkAvailabilityResponse
        xmlns:g="http://greath.example.com/2004/schemas/resSvc"&gt;

      &lt;g:rate&gt;129.95&lt;/g:rate&gt;
      &lt;g:photo xmime:contentType='image/png'&gt;/aWKKapGGyQ=&lt;/g:photo&gt;
      &lt;g:floorplan xmime:contentType="image/svg"&gt;Faa7vROi2VQ=&lt;/g:floorplan&gt;

    &lt;/g:checkAvailabilityResponse&gt;
  &lt;/soap:Body&gt;

&lt;/soap:Envelope&gt;</eg></example>
 
<p>While this (non-optimized) message satisfies the schema definition, a service may choose to allow or require that the binary data be sent in an optimized format using the Message Transmission and Optimization Mechanism (MTOM).  The use of this feature by the WSDL 2.0 SOAP binding extension is indicated as follows:</p>

 
 				<example id="example-MTOM-soap-binding">
					<head>Specifying MTOM in a WSDL 2.0 Binding</head>

<eg xml:space="preserve">

  . . .
&lt;binding name="reservationSOAPBinding" 
    interface="tns:reservationInterface"
    type="http://www.w3.org/2006/01/wsdl/soap"
    wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

 &lt;operation ref="tns:opCheckAvailability" 
      wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response"&gt;

   &lt;input name="checkAvailability" /&gt;

   &lt;output name="checkAvailabilityResponse"&gt;
     &lt;feature
       uri="http://www.w3.org/2004/08/soap/features/http-optimization"
       required="true" /&gt;
   &lt;/output&gt;

  &lt;/operation&gt;
    . . .
&lt;/binding&gt;
. . .</eg></example>
 

<p>The HTTP Message Transmission Optimization (MTOM) feature is engaged using the <code>feature</code> element.  Note that the attribute <code>required="true"</code> on the feature declaration indicates that the message must be encoded using the HTTP Optimization feature.  If the attribute were <code>required="false"</code> (or this attribute were absent), it would indicate that the use of MTOM is optional for this service: the service accepts either MTOM-encoded messages, or the embedded base64Binary data directly in the SOAP Body, and the client is free to send either form of message. </p>
 

<p>The example above shows MTOM enabled for a specific message within an operation.  Placing the feature declaration as a child of <code>operation</code> would require (or enable if <code>required="false"</code>) MTOM support for all the messages in that operation.  Placing the feature declaration as a child of <code>binding</code> would require (or enable if <code>required="false"</code>) MTOM support for all the operations in that interface.
</p>
 
</div2>
</div1>							
				
<div1 id="advanced-topic_iv">
			<head>Advanced Topics III: Miscellaneous</head>

<p>This section covers various topics that may fall outside the scope of WSDL 2.0, but shall provide useful background and best practice guidances that may be useful when authoring a WSDL 2.0 document or
implementing the WSDL 2.0 specification.</p>

			<div2 id="adv-message-dispatch">
				<head>Enabling Easy Message Dispatch</head>

<p>It is desirable for a message recipient to have the capability to uniquely identify a message in order to handle it correctly. The capability of identifying a message is typically used for dispatching purposes within an implementation of a web service. Therefore, WSDL authors are recommended to take disambiguating of messages that are defined in a description into consideration when they develop descriptions of their services. </p>

<p>The context in which a Web service may be deployed plays an important role in choosing an appropriate way to disambiguate and identify messages. In a typical deployment, an endpoint address may host a single service that is described by a WSDL service element. In this case, when XSD is used, assigning unique qualified names of global element declarations as inputs  within the interface that describes the service would be sufficient to disambiguate the messages that are received. However, when endpoint address hosts multiple services, in essence supports several WSDL descriptions, the desire to disambiguate messages should considered within the context of all the deployed services, not only within a single interface. </p>

<p>As explained in <specref ref="more-interfaces-op-attr"/>, when XSD is used as the type system, a few special tokens can be used for the <code>element</code> attributes. Uniquely identifying a message may become very difficult when:

 <ulist>
 	<item>
 		<p>
 			any of these input elements within an interface has a value
 			of “#any”; or
 		</p>
 	</item>
 	<item>
 		<p>
 			more than one of these input elements (see below) has a
 			value of “#none”; or
 		</p>
 	</item>
 	<item>
 		<p>
 			the qualified names of the global element declarations that
 			are specified as input elements are NOT unique when
 			considered together.
 		</p>
 	</item>
 </ulist>
</p>

				<p>
					If any of the three cases above arise, then one of
					the following two alternatives can be used within
					the context of a single WSDL service by WSDL
					authors:
				</p>
				<ulist>
					<item>
						<p>
							<emph>Feature.</emph>
							The service or the interface element
							contains a Feature element declaration,
							having a required attribute with a value of
							true. The feature unambiguously identifies
							the mechanism that a message sender is
							required to support in order to enable the
							message recipient to unambiguously determine
							the message received.
						</p>
					</item>
					<item>
						<p>
							<emph>Extension.</emph>
							The interface element contains an extension
							element (i.e., an element that is not in the
							http://www.w3.org/2006/01/wsdl namespace),
							having a wsdl:required attribute with a
							value of "true". The extension element
							unambiguously identifies the mechanism that
							a message sender is required to support in
							order to enable the message recipient to
							unambiguously determine the message
							received.
						</p>
					</item>
				</ulist>

				<p>In addition, WS-Addressing [WS-Addressing] specification already provides a disambiguation mechanism. It defines a required [action] property whose value is always present in a message delivery. The value of the action property can be used to disambiguate the message by the receiver and there is a well defined way to associate actions to messages in WS-Addressing specifications. Further, WS-Addressing also provides an appropriate default action value that identifies each message uniquely. </p>

<!-- old text for this section, replaced by contribution from Umit
				<p>Suppose a WSDL 2.0 document has two input-output operations and uses the same input message schema for both.  When the service receives the input message, how will the service know which operation is supposed to be invoked?  Although the data contained in a runtime message may be sufficient to distinguish between the operations, this can be a problem for WSDL 2.0 toolkits that are looking only at the message schema, rather than the actual messages.   (For example, the toolkit may be operating at design time, without access to the runtime messages.) This is the problem of <emph>dispatch</emph>.  How can a WSDL 2.0 document be written to ensure easy message dispatch?  Strategies include:</p>
				<ulist><item><p><b>Use unique top-level elements</b>. As a best practice, ensure that the top-level elements declared in the message schemas are different for different operations.  This is probably the most general solution, since it is guaranteed to provide a way to perform dispatch, without preventing toolkits from potentially using other dispatch techniques.</p></item>
				
				<item><p><b>Include a required extension</b> that enables a  particular dispatching convention.  This approach makes the dispatching convention explicit, although it may not be supported by every WSDL 2.0 toolkit.  However, as explained in <specref ref="adv-optional-versus-required"/>, toolkits that do not natively support the extension could seek manual input, thus permitting a client developer to supply an appropriate module that implements the necessary extension.  This strategy has thus permits future WSDL 2.0 toolkits to  support and process the extension automatically, while also ensuring that the extension will be handled properly by toolkits that are not yet able to process it automatically.</p></item></ulist>
				<p>To ensure that client and service implementations can easily determine the interface operation under which a received message was sent (even though not every client or service may need to make such a determination), it is considered good practice to follow one of the above strategies when authoring WSDL 2.0 documents.</p>
-->

			</div2>
			
<div2 id="adv-versioning">
				<head>Web Service Versioning</head>
				<p>A WSDL 2.0 document describes a set of messages that a Web service may 
send and receive. In essence, it describes a language for interacting with that service.  However it is possible for a Web service to exchange 
other messages beyond those described in a particular WSDL 2.0 document. Often 
this circumstance occurs following an evolution of the client and/or service, and thus an evolution of the interaction language.</p><p>How best to manage the evolution (versioning) of Web based systems is, 
at the time of writing, the subject of a wide ranging debate. However, 
there are three activities within the W3C that are directly relevant 
to versioning of Web services description:</p>
			
			<ulist><item><p>The <loc href="http://www.w3.org/2001/tag/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Technical Architecture Group (TAG)</loc> has published guidance on the extensibility and versioning of data formats in its Web Architecture document <bibref ref="webarch"/>. There is also a more wide ranging draft finding on Versioning 
and Extensibility <bibref ref="TAG-versioning"/>. Both of these works build 
upon the technical note on Web Architecture: Extensible Languages <bibref ref="web-extensible"/>.</p></item><item><p>The <loc href="http://www.w3.org/XML/Schema" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">XML Schema Working Group</loc> is collecting a series of use cases 
for schema versioning as a part of the Schema 1.1 activity.  See XML Schema Versioning Use Cases <bibref ref="xsd-versioning"/>.</p></item><item><p>The <loc href="http://www.w3.org/2001/sw/BestPractices/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Semantic Web Best Practices and Deployments Working Group</loc> is  
examining how vocabularies may evolve.  See  <bibref ref="sw-vocabulary"/></p></item></ulist>
<ednote>
    <name>PaulD</name>
    <date>20050706</date>
    <edtext>This section may be subject to change dependent upon the outcome of the WSDL Last Call Issue LC124, which discusses support compatible evolution of messages described using XML Schema 1.0.</edtext></ednote>

<p>While incomplete, these activities all agree in one important 
respect: that versioning is difficult, but you should 
anticipate and plan for change.</p><p>The draft finding on Versioning and Extensibility details two key 
approaches to versioning:</p><ulist><item><p>compatible evolution; and</p></item><item><p>big bang.</p></item></ulist><div3 id="adv-versioning-compatible-evolution"><head>Compatible Evolution</head><p>In <emph>compatible evolution</emph>, designers are expected to limit changes to 
those that are either backward or forward compatible, or both:</p><glist><gitem><label>Backward compatible</label><def><p>The receiver behaves 
correctly if it receives a message in an <emph>older</emph> version of the interaction 
language.</p></def></gitem><gitem><label>Forward compatible</label><def><p>The receiver behaves 
correctly if it receives a message in a <emph>newer</emph> version of the interaction 
language.</p></def></gitem></glist><p>Since Web services and their clients both send and receive messages, these concepts can apply to both parties.   However, since WSDL 2.0 is service-centric, we will focus on the case of service evolution.</p><p>There are three critical areas in which a service described in WSDL 2.0 my 
evolve:</p><ulist><item><p>The service now also supports additional binding.
In compatible evolution, this should be a safe addition, given that adding 
a new binding should not impact any existing interactions using another 
transport.</p></item><item><p>An interface supports new operations.
Again, in compatible evolution this is usually safe, given that adding an 
additional operation to an abstract interface should not impact any 
existing interactions.</p></item><item><p>The message bodies may include additional data.  
How the message contents may change within a description depends to 
a large extent upon the type system being used to describe the message 
contents. RelaxNG <bibref ref="relax-ng"/>  has good support for describing vocabularies that 
ignore unknown XML, as does OWL/RDF. XML Schema 1.0 has limited 
support for extending the description of a message via the <code>xs:any</code> and 
<code>xs:anyAttribute</code> constructs. XML Schema 1.1 has been chartered to 
provide "changes necessary to provide better support for versioning of 
schemas", and it is anticipated that this may include improved support 
for more "open content" and therefore better support for compatible 
evolution of messages.</p></item>
<item><p>The protocol used to exchange messages may provide mechanisms for exchanging
data outside of the message body. In the case of SOAP, the WSDL 2.0 binding
provides the ability to describe application data to be exchanged as headers. The
SOAP processing model has a very good extensibility model with unknown headers
being ignored by a receiver by default. There is also a mechanism whereby
headers which are required as a part of an incompatible change
may be marked with a 'mustUnderstand' flag. 
Passing additional items as headers may be the only way to compatibly
evolve messages with fixed bodies.</p></item></ulist></div3>

<div3 id="adv-versioning-big-bang"><head>Big Bang</head><p>The <emph>big bang</emph> approach to versioning is the simplest to 
currently represent in WSDL 2.0. In this approach, any change to a WSDL 2.0 document 
implies a change to the document's namespace, a change to the interface 
implies a new interface namespace and a change to the message contents 
is communicated using a new message namespace. This approach has 
particular benefits where an agent may quickly tell if a service has 
changed by simply comparing the namespace value.</p></div3>
<div3 id="ad-versioing-migration"><head>Evolving a Service</head>
<p>
Compatible changes are far more easily managed than incompatible ones:
</p>
<ulist>
<item>
<p>
With a compatible change the service need only support the latest version of a service. A client may continue to use a service adjusting to new version of the interface description at a time of its choosing.
</p>
</item>
<item>
<p>
With an incompatible change, the client receives a new version of the interface description and is expected to adjust to the new interface before old interface is terminated.  Either the service will need to continue to support both versions of the interface during the hand over period, or the service and the clients are coordinated to change at the same time. An alternative is for the 
client to continue until it encounters an error, at which point it uses the new version of the interface.
</p>
</item>
</ulist>

</div3>

	<div3 id="adv-versioning-combined">
		<head>Combined Approaches</head>
		<p>
			It is feasible to combine the "compatible evolution" and
			"big bang" approaches in a variety of different ways. For
			example, the namespace could be changed when message
			descriptions are changed, but the namespace could stay the
			same when new operations are added.
		</p>
		<p>
			While the big bang approach is currently the easiest to
			implement in WSDL 2.0, it can lead to a large number of
			cloned interfaces that become difficult to manage, thus
			making the compatible approach preferable to many for widely
			distributed systems. In the end, the choice of a versioning
			strategy for Web services described in WSDL 2.0 is left as
			an exercise to the reader.
		</p>
	</div3>
	


<div3 id="adv-versioning-examples">
    <head>Examples of Versioning and Extending a Service</head>
    <div4>
	<head>Additional Optional Elements Added in Content</head>
	<p> The following example demonstrates how content may be extended with
	    additional content. The reservation service is changed to a newer version that can accept an optional
	    number of guests parameter. The service provider wants existing clients
	    to continue to be able to use the service. The author adds the element
	    into the schema as an optional element. </p>
	<example id="example-versioning-additional-elements">
	    <head>XML Schema with Optional Elements</head>
	    <eg xml:space="preserve">
&lt;xs:complexType name="tCheckAvailability"&gt;     
    &lt;xs:sequence&gt;      
      &lt;xs:element  name="checkInDate" type="xs:date"/&gt;      
      &lt;xs:element  name="checkOutDate" type="xs:date"/&gt;      
      &lt;xs:element  name="roomType" type="xs:string"/&gt;
      &lt;xs:element  name="numberOfGuests" type="xs:integer" minOccurs="0"/&gt;
      &lt;xs:any namespace="##other" processContents="lax"/&gt;
    &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;     
	</eg>
	</example>
	<p> The author has the choice of keeping the same namespace or using a
	    different namespace for the additional content and the existing content.
	    In this scenario, it is a compatible change and the author decides to
	    keep the same namespace. This allows existing clients to interact with a
	    new service, and it allows newer clients to interact with older
	    services. </p>
    </div4>
    <div4>
	<head>Additional Optional Elements Added to a Header</head>
	<p> Another option is to add the extension as a header block. This is
	    accomplished by defining an element for the extension and adding a
	    header element that references the element into the binding operation as
	    child of the input. </p>
	<example id="example-versioning-additional-header-elements">
	    <head>Additional optional elements added to a SOAP header</head>
	    <eg xml:space="preserve">
&lt;xs:element name="NumberOfGuests" type="tNumberOfGuests"/&gt;
&lt;xs:complexType name="tNumberOfGuests"&gt;     
    &lt;xs:sequence&gt;      
        &lt;xs:element  name="numberOfGuests" type="xs:integer" minOccurs="0"/&gt;
    &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

&lt;binding name="reservationSOAPBinding" 
    interface="tns:reservationInterface"
    type="http://www.w3.org/2006/01/wsdl/soap"
    wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

    &lt;operation ref="tns:opCheckAvailability"&gt;
       &lt;input&gt;
         &lt;wsoap:header element="tns:NumberOfGuests"/&gt;
       &lt;/input&gt;
    &lt;/operation&gt;
...
&lt;/binding&gt;
    </eg>
	</example>
	<p> It is also possible for the header to be marked with soap:mustUnderstand
	    set to true. The HTTP Binding has similar functionality though without a
	    mustUnderstand attribute.</p>
    </div4>
    <div4>
	<head>Additional Mandatory Elements in Content</head>
	<p> This following example demonstrates an extension with additional
	    content. The reservation service requires a number of guests parameter.
	    The service provider wants existing clients to be unable to use the
	    service. The author adds the element into the schema as a mandatory
	    element.</p>
	<example id="example-versioning-additional-mandatory-elements">
	    <head>Additional Mandatory Elements in Content</head>
                            <eg xml:space="preserve">
&lt;xs:complexType name="tCheckAvailabilityV2"&gt;     
    &lt;xs:sequence&gt;      
    &lt;xs:element  name="checkInDate" type="xs:date"/&gt;      
    &lt;xs:element  name="checkOutDate" type="xs:date"/&gt;      
    &lt;xs:element  name="roomType" type="xs:string"/&gt;
    &lt;xs:element  name="numberOfGuests" type="xs:integer"/&gt;
    &lt;xs:any namespace="##other" processContents="lax"/&gt;
    &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;     
	    </eg>
	</example>
	<p> The author has the choice of keeping the same namespace or using a
	    different namespace for the additional content and the existing content.
	    In this scenario, it is an incompatible change and the author decides to
	    use a new name but the same namespace. This type is then used in the
	    interface operation, and then binding and service endpoints.</p>
    </div4>
    <div4>
	<head>Additional Optional Operation Added to Interface</head>
	<p> Section <specref ref="more-interfaces-inheritance"/> shows another type
	    of versioning or extension, where the reservationInterface extends the
	    MessageLogInterface. By definition of interface inheritance, a client
	    that understands just the MessageLogInterface will continue to work with
	    the reservationInterface, that it is backwards compatible.</p>
    </div4>
    <div4>
	<head>Additional Mandatory Operation Added to Interface</head>
	<p> Often mandatory operations are added to an interface. The Hotel service
	    decides to add an operation to the reservation service which is a
	    confirmation. The Hotel service requires that all clients upgrade to the
	    new interface to use the service. They have a variety of options for
	    indicating that the old interface is deprecated.</p>
	<p> By the definition of interface inheritance, they cannot use interface
	    inheritance for defining the extension.</p>
	<example id="example-versioning-additional-mandatory-operation">
	    <head>Additional Mandatory Operation Added to the Interface</head>
	    <eg xml:space="preserve">
&lt;interface name="reservationWithConfirmation" extends="cc:creditCardFaults"&gt;
    ... 
    &lt;operation name="makeReservation"&gt;
	&lt;input messageLabel="In" element="ghns:makeReservation" /&gt;
	&lt;output messageLabel="Out" element="ghns:makeReservationResponse" /&gt;
	&lt;outfault ref="invalidDataFault" messageLabel="Out" /&gt;
	&lt;outfault ref="cc:cancelledCreditCard" messageLabel="Out" /&gt;
	&lt;outfault ref="cc:expiredCreditCard" messageLabel="Out" /&gt;
	&lt;outfault ref="cc:invalidCreditCardNumber" messageLabel="Out" /&gt;
	&lt;outfault ref="cc:invalidExpirationDate" messageLabel="Out" /&gt;
    &lt;/operation&gt;
    &lt;operation name="confirmReservation"&gt;
	&lt;input messageLabel="In" element="ghns:makeReservationResponse" /&gt;
	&lt;output messageLabel="Out" element="ghns:confirmReservationResponse" /&gt;
	&lt;outfault ref="expiredReservation" messageLabel="Out" /&gt;
    &lt;/operation&gt;
&lt;/interface&gt;
	    </eg>
	</example>
	<p> This interface cannot be bound and deployed at the existing URI and
	    indicate incompatibility, as the service will still accept the
	    makeReservation request. Changing the name of the interface from
	    reservation to reservationWithConfirmation or changing the name of the
	    operation from makeReservation to makeReservationV2 does not affect the
	    messages that are exchanged. Thus it can't be used as a mechanism for
	    indicating incompatibility. To indicate incompatibility, a change must
	    be made to something that appears in the message. For a SOAP over HTTP
	    request, the list is roughly the URI, the SOAP Action HTTP Header, or
	    the Message content.</p>
    </div4>
    <div4>
	<head>Indicating Incompatibility by Changing the Endpoint URI</head>
	<p> To indicate incompatibility, the URI of the Hotel Endpoint can be
	    changed and messages send to the old Endpoint return a Fault.</p>
    </div4>
    <div4>
	<head>Indicating Incompatibility by Changing the SOAP Action</head>
	<p> The SOAP Action can be set for the makeReservation request, and making
	    it different than the earlier version should indicate incompatibility.</p>
	<example id="example-versioning-SOAP-Action">
	    <head>Indicating Incompatibility by changing the SOAP Action</head>
                            <eg xml:space="preserve">
&lt;binding name="reservationSOAPBinding" 
        interface="tns:reservationInterface"
        type="http://www.w3.org/2006/01/wsdl/soap"
        wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;
    &lt;operation ref="tns:makeReservation"
	wsoap:action="tns:makeReservationV2"/&gt;
    . . .
	    </eg>
	</example>
	<p> Note that this mechanism is applicable on a per-binding basis. The SOAP
	    HTTP Binding provides for setting Action, but other bindings may not
	    provide such a facility.</p>
    </div4>
    <div4>
	<head>Indicating Incompatibility by Changing the Element Content</head>
	<p> The namespace or name of the makeReservation element can be changed, and
	    then the interface and bindings changed. To indicate incompatibility,
	    requests using the old makeReservation QName should probably return a
	    fault. The new interface, with a changed makeReservation, is:</p>
	<example id="example-versioning-changing-element-content">
	    <head>Indicating incompatibility by changing the element content</head>
	    <eg xml:space="preserve">
&lt;xs:element name="ghns2:makeReservation" type="ghns:tmakeReservation"/&gt;

&lt;interface . . .&gt;

   &lt;operation name="makeReservation"&gt;

       &lt;input messageLabel="In" element="ghns2:makeReservation" /&gt;

&lt;/interface&gt;
    </eg>
	</example>
	<p> The binding and service endpoints require no change.</p>
	<p> Finally, the service could also provide an interface for
	    ghns:makeReservation that only returns a fault.</p>
    </div4>
</div3>


</div2>

	<div2 id="adv-service-references">
		<head>
			Describing Web Service Messages That Refer to Other Web
			Services
		</head>

		<p>
			Hyperlinking is one of the defining characteristics of the
			Web. The ability to navigate from one Web page to another is
			extremely useful. It is therefore natural to apply this
			capability to Web services. This section describes
			references to endpoints and services, which are the Web
			service analogs of document hyperlinks.
		</p>

		<p>
			A
			<emph>reference to an endpoint</emph>
			is an element or attribute that contains the address of a
			Web service endpoint. A
			<emph>reference to a service</emph>
			is an element or attribute that contains one or more
			references to the endpoints of a service. If the interface
			or binding that the service or endpoint implements is known
			at description time, it may be useful to add this
			information to the WSDL 2.0 document that describes the Web
			service. This is accomplished by using the
			<att>wsdlx:interface</att>
			or
			<att>wsdlx:binding</att>
			attribute to annotate the XML Schema component that defines
			the message.
		</p>

		<p>
			One may wonder, from a Web architectural point of view, why
			anything more than a URI would be needed to reference a Web
			service. Indeed, a reference to a service does make use of
			one or more URIs to indicate the endpoint addresses of a
			service. However, it may also include additional metadata
			about that service, such as the WSDL 2.0 interface and
			binding that the service supports.
		</p>

		<p>
			References to services and endpoints will be illustrated by
			expanding the GreatH example already discussed.
		</p>

		<div3 id="reservationDetails">
			<head>The Reservation Details Web Service</head>

			<p>
				When designing a Web application it is natural to give
				each important concept a URI. In the GreatH hotel
				reservation system, the important concepts are
				reservations, so we begin our design by assigning a URI
				to each reservation. Since each reservation has a unique
				confirmation number, e.g OMX736, we create a URI for
				each reservation by appending the confirmation number to
				a base URI, e.g.
				http://greath.example.com/2004/reservation/OMX736. This
				URI will be the endpoint address for a Reservation
				Details Web service that can retrieve and update the
				state of a reservation.
				<specref ref="reservationDetails-OMX736.xml"/>
				shows the format of the reservation detail.
			</p>

			<example id="reservationDetails-OMX736.xml">
				<head>Detail for Reservation OMX736</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;reservationDetails
	xmlns="http://greath.example.com/2004/schemas/reservationDetails"&gt;

	&lt;confirmationNumber&gt;OMX736&lt;/confirmationNumber&gt;
	&lt;checkInDate&gt;2005-06-01&lt;/checkInDate&gt;
	&lt;checkOutDate&gt;2005-06-03&lt;/checkOutDate&gt;
	&lt;roomType&gt;single&lt;/roomType&gt;
	&lt;smoking&gt;false&lt;/smoking&gt;

&lt;/reservationDetails&gt;</eg>
			</example>

			<p>
				The Reservation Details Web service provides operations
				for retrieving and updating the detail for a
				reservation.
				<specref ref="reservationDetails.wsdl"/>
				shows the description for this Web service. Note that
				there is no
				<code>service</code>
				element in this description since the set of
				reservations is dynamic. Instead, the endpoints for the
				reservations will be returned by querying the
				Reservation List Web service.
			</p>

			<example id="reservationDetails.wsdl">
				<head>
					The Reservation Details Web Service Description:
					reservationDetails.wsdl
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description 
	xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/reservationDetails"
	xmlns:tns="http://greath.example.com/2004/services/reservationDetails"
	xmlns:wdetails="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Reservation Details Web
		services. Use these services to retrieve or update reservation
		details. Each reservation has its own service and endpoint. To
		obtain the reference for a reservation service, make a request to
		the GreatH Reservation List Web service. See
		reservationList.wsdl for a description of the Reservation List
		Web service.
	&lt;/documentation&gt;

	&lt;types&gt;
		&lt;xs:import
			namespace="http://greath.example.com/2004/schemas/reservationDetails"
			schemaLocation="reservationDetails.xsd" /&gt;
	&lt;/types&gt;

	&lt;interface name="reservationDetailsInterface"&gt;

		&lt;operation name="retrieve"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="#none" /&gt;
			&lt;output messageLabel="Out"
				element="wdetails:reservationDetails" /&gt;
		&lt;/operation&gt;

		&lt;operation name="update"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In"
				element="wdetails:reservationDetails" /&gt;
			&lt;output messageLabel="Out"
				element="wdetails:reservationDetails" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

	&lt;binding name="reservationDetailsSOAPBinding"
		interface="tns:reservationDetailsInterface"
		type="http://www.w3.org/2006/01/wsdl/soap"
		wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

		&lt;operation ref="tns:retrieve"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

		&lt;operation ref="tns:update"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

	&lt;/binding&gt;

&lt;/description&gt;</eg>
			</example>

			<p>
				<specref ref="reservationDetails.xsd"/>
				shows the XML schema elements that are used in this Web
				service.
			</p>

			<example id="reservationDetails.xsd">
				<head>
					The Reservation Details Web Service XML Schema:
					reservationDetails.xsd
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified"
	targetNamespace="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:tns="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:wdetails="http://greath.example.com/2004/services/reservationDetails"
	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
	xmlns:wsdlx="http://www.w3.org/2006/01/wsdl-extensions"
	wsdli:wsdlLocation="http://greath.example.com/2004/services/reservationDetails reservationDetails.wsdl"&gt;

	&lt;element name="confirmationNumber" type="string" /&gt;

	&lt;element name="checkInDate" type="date" /&gt;

	&lt;element name="checkOutDate" type="date" /&gt;

	&lt;element name="reservationDetails"&gt;
		&lt;complexType&gt;
			&lt;sequence&gt;
				&lt;element ref="tns:confirmationNumber" /&gt;
				&lt;element ref="tns:checkInDate" /&gt;
				&lt;element ref="tns:checkOutDate" /&gt;
				&lt;element name="roomType" type="string" /&gt;
				&lt;element name="smoking" type="boolean" /&gt;
			&lt;/sequence&gt;
		&lt;/complexType&gt;
	&lt;/element&gt;

	&lt;simpleType name="reservationDetailsSOAPEndpointType" wsdlx:binding="wdetails:reservationDetailsSOAPBinding"&gt;
		&lt;restriction base="anyURI"/&gt;
	&lt;/simpleType&gt;

	&lt;element name="reservationDetailsSOAPEndpoint" type="tns:reservationDetailsSOAPEndpointType" /&gt;

	&lt;element name="reservationDetailsService"&gt;
		&lt;annotation&gt;
			&lt;documentation&gt;
				This element contains references to the Reservation
				Details Web Service endpoints for this reservation.
			&lt;/documentation&gt;
		&lt;/annotation&gt;
		&lt;complexType&gt;
			&lt;sequence&gt;
				&lt;element name="soap" type="tns:reservationDetailsSOAPEndpointType"/&gt;
				&lt;element name="secure-soap" type="tns:reservationDetailsSOAPEndpointType"/&gt;
			&lt;/sequence&gt;
		&lt;/complexType&gt;
	&lt;/element&gt;

&lt;/schema&gt;</eg>
			</example>

			<p>
				This XML schema contains the usual definitions for the
				elements that appear in the messages of the Web service.
				For example, the
				<code>reservationDetails</code>
				element is used in the messages of the
				<code>retrieve</code>
				and
				<code>update</code>
				operations. In addition, the schema defines the simple
				type
				<code>reservationDetailsSOAPEndpointType</code>
				which is based on
				<code>xs:anyURI</code>
				and has the annotation
				<code>
					wsdlx:binding =
					"wdetails:reservationDetailsSOAPBinding"
				</code>
				which means that the URI is the address of a Reservation
				Details Web service endpoint that implements the
				<code>wdetails:reservationDetailsSOAPBinding</code>
				binding. Note that the
				<att>wsdli:wsdlLocation</att>
				attribute is used to define the location of the WSDL 2.0
				document that defines the
				<code>wdetails:reservationDetailsSOAPBinding</code>
				binding. This annotated simple type is used to define
				the
				<el>reservationDetailsSOAPEndpoint</el>
				element which will be used in the Reservation List
				service.
			</p>

		</div3>

		<div3 id="reservationList">
			<head>The Reservation List Web Service</head>
			<p>
				Since the set of reservations changes as reservations
				are made and cancelled, the Reservation Detail endpoints
				are not described in a fixed WSDL 2.0 document. Instead
				they are returned as references to endpoints in response
				to requests made on a Reservation List Web service. The
				endpoint address for the Reservation List service will
				be http://greath.example.com/2004/reservationList.
			</p>

			<p>
				<specref ref="reservationList-all.xml"/>
				shows the format of the response from the Reservation
				List service.
			</p>
			<example id="reservationList-all.xml">
				<head>
					Response from the Reservation List Web Service
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;reservationList
	xmlns="http://greath.example.com/2004/schemas/reservationList"
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"&gt;

	&lt;reservation&gt;
		&lt;details:confirmationNumber&gt;HSG635&lt;/details:confirmationNumber&gt;
		&lt;details:checkInDate&gt;2005-06-27&lt;/details:checkInDate&gt;
		&lt;details:checkOutDate&gt;2005-06-28&lt;/details:checkOutDate&gt;
		&lt;details:reservationDetailsSOAPEndpoint&gt;
			http://greath.example.com/2004/reservation/HSG635
		&lt;/details:reservationDetailsSOAPEndpoint&gt;
	&lt;/reservation&gt;

	&lt;reservation&gt;
		&lt;details:confirmationNumber&gt;OMX736&lt;/details:confirmationNumber&gt;
		&lt;details:checkInDate&gt;2005-06-01&lt;/details:checkInDate&gt;
		&lt;details:checkOutDate&gt;2005-06-03&lt;/details:checkOutDate&gt;
		&lt;details:reservationDetailsSOAPEndpoint&gt;
			http://greath.example.com/2004/reservation/OMX736
		&lt;/details:reservationDetailsSOAPEndpoint&gt;
	&lt;/reservation&gt;

	&lt;reservation&gt;
		&lt;details:confirmationNumber&gt;WUH663&lt;/details:confirmationNumber&gt;
		&lt;details:checkInDate&gt;2005-06-11&lt;/details:checkInDate&gt;
		&lt;details:checkOutDate&gt;2005-06-15&lt;/details:checkOutDate&gt;
		&lt;details:reservationDetailsSOAPEndpoint&gt;
			http://greath.example.com/2004/reservation/WUH663
		&lt;/details:reservationDetailsSOAPEndpoint&gt;
	&lt;/reservation&gt;

&lt;/reservationList&gt;</eg>
			</example>

			<p>
				Here, the
				<code>
					&lt;details:reservationDetailsSOAPEndpoint&gt;
				</code>
				elements contain references to the Reservation Details
				Web service endpoints for the reservations HSG635,
				OMX736, and WUH663.
			</p>

			<p>
				<specref ref="reservationList.wsdl"/>
				shows the description of the Reservation List Web
				service. Note that it contains operations to retrieve
				the entire list and to query for a list of reservations
				by confirmation number, check-in date, and check-out
				date. In each case, the operation returns a list of
				reservations.
			</p>

			<example id="reservationList.wsdl">
				<head>
					The Reservation List Web Service Description:
					reservationList.wsdl
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;description 
	xmlns="http://www.w3.org/2006/01/wsdl"
	targetNamespace="http://greath.example.com/2004/services/reservationList"
	xmlns:tns="http://greath.example.com/2004/services/reservationList"
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:list="http://greath.example.com/2004/schemas/reservationList"
	xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

	&lt;documentation&gt;
		This document describes the GreatH Reservation List Web
		services. Use this service to retrieve lists of reservations
		based on a variety of search criteria.
	&lt;/documentation&gt;

	&lt;types&gt;
		&lt;xs:import
			namespace="http://greath.example.com/2004/schemas/reservationDetails"
			schemaLocation="reservationDetails.xsd" /&gt;
		&lt;xs:import
			namespace="http://greath.example.com/2004/schemas/reservationList"
			schemaLocation="reservationList.xsd" /&gt;
	&lt;/types&gt;

	&lt;interface name="reservationListInterface"&gt;

		&lt;operation name="retrieve"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="#none" /&gt;
			&lt;output messageLabel="Out" element="list:reservationList" /&gt;
		&lt;/operation&gt;

		&lt;operation name="retrieveByConfirmationNumber"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In"
				element="details:confirmationNumber" /&gt;
			&lt;output messageLabel="Out" element="list:reservationList" /&gt;
		&lt;/operation&gt;

		&lt;operation name="retrieveByCheckInDate"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="details:checkInDate" /&gt;
			&lt;output messageLabel="Out" element="list:reservationList" /&gt;
		&lt;/operation&gt;

		&lt;operation name="retrieveByCheckOutDate"
			pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
			&lt;input messageLabel="In" element="details:checkOutDate" /&gt;
			&lt;output messageLabel="Out" element="list:reservationList" /&gt;
		&lt;/operation&gt;

	&lt;/interface&gt;

	&lt;binding name="reservationListSOAPBinding"
		interface="tns:reservationListInterface"
		type="http://www.w3.org/2006/01/wsdl/soap"
		wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"&gt;

		&lt;operation ref="tns:retrieve"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

		&lt;operation ref="tns:retrieveByConfirmationNumber"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

		&lt;operation ref="tns:retrieveByCheckInDate"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

		&lt;operation ref="tns:retrieveByCheckOutDate"
			wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /&gt;

	&lt;/binding&gt;

	&lt;service name="reservationListService"
		interface="tns:reservationListInterface"&gt;

		&lt;endpoint name="reservationListEndpoint"
			binding="tns:reservationListSOAPBinding"
			address="http://greath.example.com/2004/reservationList" /&gt;

	&lt;/service&gt;

&lt;/description&gt;</eg>
			</example>

			<p>
				<specref ref="reservationList.xsd"/>
				shows the schema for the messages used in the
				Reservation List Web service.
			</p>
			<example id="reservationList.xsd">
				<head>
					The Reservation List Schema: reservationList.xsd
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified"
	targetNamespace="http://greath.example.com/2004/schemas/reservationList"
	xmlns:tns="http://greath.example.com/2004/schemas/reservationList"
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"&gt;

	&lt;import
		namespace="http://www.w3.org/2006/01/wsdl-instance" /&gt;

	&lt;import
		namespace="http://greath.example.com/2004/schemas/reservationDetails"
		schemaLocation="reservationDetails.xsd" /&gt;

	&lt;element name="reservation"&gt;
		&lt;annotation&gt;
			&lt;documentation&gt;
				A reservation contains the confirmation number, check-in
				and check-out dates, and a reference to a Reservation
				Details Web service.
			&lt;/documentation&gt;
		&lt;/annotation&gt;
		&lt;complexType&gt;
			&lt;sequence&gt;
				&lt;element ref="details:confirmationNumber" /&gt;
				&lt;element ref="details:checkInDate" /&gt;
				&lt;element ref="details:checkOutDate" /&gt;
				&lt;element ref="details:reservationDetailsSOAPEndpoint" /&gt;
			&lt;/sequence&gt;
		&lt;/complexType&gt;
	&lt;/element&gt;

	&lt;element name="reservationList"&gt;
		&lt;annotation&gt;
			&lt;documentation&gt;
				A reservation list contains a sequence of zero or more
				reservations.
			&lt;/documentation&gt;
		&lt;/annotation&gt;
		&lt;complexType&gt;
			&lt;sequence&gt;
				&lt;element ref="tns:reservation" minOccurs="0"
					maxOccurs="unbounded"&gt;
				&lt;/element&gt;
			&lt;/sequence&gt;
			&lt;attribute ref="wsdli:wsdlLocation" /&gt;
		&lt;/complexType&gt;
	&lt;/element&gt;

&lt;/schema&gt;</eg>
			</example>

			<p>
				In the preceding example, there was a single endpoint
				associated with each Reservation Detail Web service.
				Suppose GreatH hotel decided to provide a second, secure
				endpoint. In this case, references to services would be
				used to collect together the endpoints for each
				reservation. The reservationDetails.xsd schema defines
				the
				<code>reservationDetailsService</code>
				element for this purpose. It contains the nested
				elements
				<el>soap</el>
				and
				<el>secure-soap</el>
				which are each of type
				<code>reservationDetailsSOAPEndpointType</code>
				and therefore contain the address of an endpoint that
				implements the
				<code>wdetails:reservationDetailsSOAPBinding</code>
				binding.
			</p>
			<p>
				<specref ref="reservationServiceReferences-HSG635.xml"/>
				shows an example of a message that contains a reference
				to the service for reservation HGS635. Note that the
				service contains two endpoints, one of which provides
				secure access to the Reservation Details Web service.
			</p>

			<example id="reservationServiceReferences-HSG635.xml">
				<head>
					A Reference to the Reservation Details Web Service
				</head>
<eg xml:space="preserve">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;details:reservationDetailsService
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"

	&lt;details:soap&gt;
		http://greath.example.com/2004/reservation/HSG635
	&lt;/details:soap&gt;

	&lt;details:secure-soap&gt;
		https://greath.example.com/2004/reservation/HSG635
	&lt;/details:secure-soap&gt;
			
&lt;/details:reservationDetailsService&gt;</eg>
			</example>


		</div3>
		<div3 id="reservationDetails_HTTP">
			<head>
				Reservation Details Web Service Using HTTP Transfer
			</head>
			<p>
				This section presents a variation on the example in
				<specref ref="reservationDetails"/>
				. It illustrates the use of HTTP transfer operations,
				GET and PUT, to retrieve and update GreatH hotel
				reservation details using the Representational State
				Transfer (REST) architectural style described by Roy
				Fielding
				<bibref ref="rest"/>
				. REST is a distillation of the architectural properties
				that Dr. Fielding identified as being vital to the Web's
				robustness and enormous scalability.
			</p>
			<p>
				Since each reservation in our example will have a
				distinct URI, the Reservation Details Web service can be
				offered using HTTP GET and HTTP PUT. The binding would
				be modified as follows:
			</p>
			<example id="reservationDetails_HTTP_example">
				<head>
					Reservation Details Web Service Using HTTP Transfer
				</head>
<eg xml:space="preserve">. . .
&lt;binding name="reservationDetailsHTTPBinding"
	type="http://www.w3.org/2006/01/wsdl/http"
    interface="tns:reservationDetailsInterface" &gt;

        &lt;operation ref="tns:retrieve"
            whttp:method="GET" /&gt;

        &lt;operation ref="tns:update"
            whttp:method="PUT" /&gt;

&lt;/binding&gt;
. . .</eg>
			</example>
			<p>
				As with the example in
				<specref ref="reservationDetails"/>
				, service and endpoint elements are not provided because
				the Reservation List Web service provides the endpoints.
			</p>
		</div3>
		<div3 id="reservationList_HTTP_GET">
			<head>Reservation List Web Service Using HTTP GET</head>
			<p>
				This section continues the REST-style example of
				<specref ref="reservationDetails_HTTP"/>
				by modifying the example of
				<specref ref="reservationList"/>
				to use HTTP GET.
			</p>
			<p>
				The SOAP version of the Reservation List Web service
				above offers four different search operations. These can
				also be expressed as various parameters in a URI used by
				HTTP GET:
			</p>
			<example id="example_reservationList_HTTP_GET">
				<head>Reservation List Web Service Using HTTP GET</head>
<eg xml:space="preserve">. . .
&lt;binding name="reservationListHTTPBinding"
	type="http://www.w3.org/2006/01/wsdl/http"
    interface="tns:reservationListInterface"
    whttp:methodDefault="GET"&gt;

  &lt;operation ref="tns:retrieve"
      whttp:location="" /&gt;

  &lt;operation ref="tns:retrieveByConfirmationNumber"
      whttp:location="reservationList/ConfirmationNumber/{confirmationNumber/}" /&gt;

  &lt;operation ref="tns:retrieveByCheckInDate"
      whttp:location="reservationList/CheckInDate/{checkInDate/}" /&gt;

  &lt;operation ref="tns:retrieveByCheckOutDate"
      whttp:location="reservationList/CheckOutDate/{checkOutDate/}" /&gt;
&lt;/binding&gt;
. . .
&lt;service . . . &gt;

  &lt;endpoint name="reservationListEndpoint"
    binding="tns:reservationListHTTPBinding"
    address="http://greath.example.com/2004/reservationList" /&gt;
. . .
&lt;/service&gt;
. . .</eg>
			</example>
			<p>
				A retrieval by Confirmation Number URI would look like:
				<code>
					http://greath.example.com/2004/reservationList/ConfirmationNumber/HSG635
					.
				</code>
			</p>
			<p>
				Alternatively, a single query type may be provided. This
				query type is a sequence of optional items. Any items in
				the sequence are serialized into the URI query string. A
				query sequence for any of ConfirmationNumber,
				checkInDate, checkOutDate would look like this:
			</p>
			<example id="example_reservationList_HTTP_GET_single">
				<head>Query Sequence Using a Single Query Type</head>
<eg xml:space="preserve">&lt;element name="reservationQuery"&gt;
  &lt;annotation&gt;
    &lt;documentation&gt;
      A reservation contains the confirmation number, check-in
      and check-out dates, and a reference to a Reservation
      Details Web service.
    &lt;/documentation&gt;
  &lt;/annotation&gt;
  &lt;complexType&gt;
    &lt;sequence&gt;
      &lt;element ref="details:confirmationNumber" minOccurs="0"/&gt;
      &lt;element ref="details:checkInDate" minOccurs="0"/&gt;/&gt;
      &lt;element ref="details:checkOutDate" minOccurs="0"/&gt;/&gt;
    &lt;/sequence&gt;
    &lt;/sequence&gt;
  &lt;/complexType&gt;
&lt;/element&gt;</eg>
			</example>
			<p>
				The WSDL 2.0 service that offers this type serialized as
				a parameter would look like this:
			</p>
			<example id="example_reservationList_HTTP_GET_single_wsdl">
				<head>WSDL 2.0 for Using a Single Query Type</head>
<eg xml:space="preserve">. . .
&lt;interface name="reservationListInterfaceWithQuery"&gt;

  &lt;operation name="retrieveByReservationQuery"
		pattern="http://www.w3.org/2006/01/wsdl/in-out"&gt;
    &lt;input messageLabel="In"
        element="details:ReservationQuery" /&gt;
    &lt;output messageLabel="Out"
        element="list:reservationList" /&gt;
  &lt;/operation&gt;

&lt;/interface&gt;

&lt;binding name="reservationListQueryHTTPBinding"
	type="http://www.w3.org/2006/01/wsdl/http"
    interface="tns:reservationListInterfaceWithQuery"
    whttp:methodDefault="GET"&gt;

  &lt;operation ref="tns:retrieveByReservationQuery"
      whttp:location="reservationList/{ReservationQuery}}" /&gt;

&lt;/binding&gt;

. . .
  &lt;endpoint name="reservationListEndpoint"
      binding="tns:reservationListHTTPBinding"
      address="http://greath.example.com/2004/reservationList" /&gt;
. . .</eg>
			</example>
			<p>
				Various URIs would be:

				<code>
					http://greath.example.com/2004/reservationList/ReservationQuery?confirmationNumber=HSG635
				</code>

				<code>
					http://greath.example.com/2004/reservationList/ReservationQuery?checkInDate=06-06-05
				</code>



				.
			</p>
			<p>
				It is important to observe that using the URI
				serialization can result in very flexible queries and
				few operations. The previous discrete SOAP operations
				are collapsed into one "parameterized" operation.
			</p>
		</div3>
	</div2>

	<div2 id="adv-multiple-docs-describing-same-service">
				<head>Multiple Interfaces for the Same Service</head>
				<p>Suppose a Web service wishes to expose two different interfaces: a customer interface for its regular users, and a management interface for its operator.  A <code>wsdl:service</code> specifies only one wsdl:interface, so to achieve the desired effect the service provider would somehow need to indicate a relationship between two services.    How can a service provider indicate a relationship between services?  Potential strategies include:<ulist><item><p><b>Declare both interfaces in the same wsdl:description element.</b>  Although WSDL 2.0 does not ascribe any particular significance to the fact that two wsdl:services are declared within the same wsdl:description, an application or toolkit could interpret this to mean that they are related in some way.</p></item><item><p><b>Declare both interfaces in the same wsdl:targetNamespace.</b>  Again, although WSDL 2.0 does not ascribe any particular significance to the fact that two wsdl:services are declared within the same wsdl:targetNamespace, an application or toolkit could interpret this to mean that they are related in some way.
</p></item><item><p><b>Add an extension to WSDL 2.0</b> that links together all services that are related in this way.  WSDL 2.0's open content model permits extension elements from other namespaces to appear in a WSDL 2.0 document.</p></item><item><p><b>Declare them in completely separate WSDL 2.0 documents, but use the same endpoint address for both.</b>  I.e., declare a <code>wsdl:interface</code> and <code>wsdl:service</code> for the customer interface in one WSDL 2.0 document, and a <code>wsdl:interface</code> and <code>wsdl:service</code> for the management interface in a different WSDL 2.0 document, but use the same endpoint address for both.  (By "different WSDL 2.0 document" we mean that both documents are never included or imported into the same WSDL 2.0 descriptions component.)  Although this approach may work in some circumstances, it means that the same endpoint address would be used for two different purposes, which is apt to cause confusion or ambiguity.  Furthermore, it is contrary to the Web architectural principle that different URIs should be used to identify different Web resources. (See the Web Architecture <bibref ref="webarch"/> section on <xspecref href="http://www.w3.org/TR/webarch/#URI-collision" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">URI collision</xspecref>.)</p></item><item><p><b>Use inheritance to combine the customer interface and management interface</b> into a single, larger wsdl:interface.  Of course, this reduces modularity and means that the management interface becomes exposed to the customers, which is not good. </p></item></ulist></p><p>Bear in mind that since the above strategies step outside of the WSDL 2.0 language specifies (and are therefore neither endorsed nor forbidden by the WSDL 2.0 specification) the WSDL 2.0 specification cannot define or standardize their semantics.  </p><p>The desire to express relationships between services is also relevant to Web service versioning, discussed next.</p>
			</div2>			
			
			
			<div2 id="adv-rdf-mapping">
				<head>Mapping to RDF and Semantic Web</head>

				<ednote>
					<name>KevinL</name>
					<date>20050429</date>
					<edtext>
						This section might be removed - pending on the availability of the RDF mapping note.					</edtext>
				</ednote>


			<p>WSDL 2.0 is a language designed primarily with XML syntax. While XML is
almost universally understood, it has several issues: </p>

<ulist><item><p>The ability to compose two XML documents into one depends on the languages of those documents. WSDL 2.0 does not permit Web service descriptions 
        in different targetNamespaces to be merged into a single (physical) XML document. </p></item><item><p>The ability to extend XML languages with other XML languages depends on the
        languages again. WSDL 2.0 is extremely extensible, but the meaning
        of every single extension in WSDL 2.0 must be defined explicitly.  Putting a
        piece of XMI (XML format for UML) into a WSDL 2.0 document may have
        different meaning from putting it into an XHTML document.
        Therefore XML-based extensibility has very high cost if many
        languages are involved. </p></item><item><p>Similarly, extending another XML language with pieces of WSDL 2.0,
        while possible, has to be defined for all the possible
        destinations. Putting a WSDL 2.0 interface element into a UDDI
        registry may mean a different thing from putting that interface
        element into an XHTML document.</p></item><item><p>Finally, the meaning of a portion of a WSDL 2.0 document is  not defined by the WSDL 2.0
        specification.  While an interface element could form a single XML
        document, it is not a WSDL 2.0 document, so its meaning is largely undefined. </p></item></ulist><p>Applications that require such levels of composability (or
decomposability) are increasingly being based on RDF <bibref ref="rdf"/>, a graph-based
knowledge representation language, and Web Ontology Language (OWL) <bibref ref="owl"/>,
which can be thought of as an advanced schema language for RDF.  Effectively,
a WSDL 2.0 document represented in RDF can be more easily extended with arbitrary
RDF assertions and the WSDL 2.0 information can be more easily associated with
arbitrary other knowledge.  </p>

<div3 id="adv-rdf-rep-wsdl"><head>RDF Representation of WSDL 2.0</head>

<p><emph>WSDL 2.0: Mapping to RDF</emph> <bibref ref="RDFmap"/> describes how WSDL 2.0 constructs can be
expressed in RDF using classes of resources (described with an ontology
expressed in OWL) and assertions over individual resources.  As RDF represents knowledge using resources and relationships between
them, we need to turn WSDL 2.0 concepts into this model.  This is done as follows.</p><olist><item><p>First, all components in WSDL 2.0 (like Interfaces, Operations,
        Bindings, Services, Endpoints etc., including extensions) are
        turned into resources identified with the appropriate URIs
        created according to <xspecref href="http://www.w3.org/TR/2006/CR-wsdl20-20060327#wsdl-iri-references" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Appendix C IRI-References for WSDL 2.0 Components</xspecref> of <bibref ref="WSDL-PART1"/>.</p></item><item><p>Further, things are represented as resources:<olist><item><p>Element declarations gathered from XML Schema (or
                similarly, other components from other type systems)</p></item><item><p>Message content models</p></item><item><p>Message exchange patterns (the URI identifying the MEP
                is the URI of the resource)</p></item><item><p>Operation styles (similarly to MEPs, the URI of an
                operation style is the URI of the resource)</p></item></olist></p></item><item><p>All the resources above are given the appropriate types using
        rdf:type statements (an interface will belong to the class
        Interface and an operation within an interface will belong to
        the class InterfaceOperation, for example).</p></item><item><p>All relationships in WSDL 2.0 (like an Operation belonging to an
        Interface and having a given operation style) are turned into
        RDF statements using appropriate properties, such as <code>operation</code>
        and <code>operationStyle</code>.</p></item></olist></div3></div2>
			
			<!-- **********************************NotesOnURIs***************** -->
			<div2 id="adv-notes-on-uris"><head>Notes on URIs</head>
			
			<div3 id="adv-namespaces-and-schema-locations"><head>XML Namespaces and Schema Locations</head><p>It is a common misperception to equate either the  target namespace of an XML Schema or the value of the
<att>xmlns</att> attribute in XML instances with the location
of the corresponding schema. Even though namespaces are URIs, and URIs may be locations, and it may be possible to
retrieve a schema from such a location, this does not mean that the retrieved schema
is the <emph>only</emph> schema that is associated with that namespace.
There can be multiple schemas associated with a particular
namespace, and it is up to a processor of XML to determine
which one to use in a particular processing context. The WSDL 2.0
specification provides the processing context here via the
<att>import</att> mechanism, which is based on XML
Schema's term for the similar concept.</p></div3><div3 id="adv-relative-uris"><head>Relative URIs</head><p>Throughout this document there are fully qualified URIs used
in WSDL 2.0 and XSD examples. In some cases, fully qualified URIs
were used simply to illustrate the referencing concepts. However, the use of
relative URIs is allowed and warranted in many
cases. For information on processing relative URIs, see
<loc href="http://www.ietf.org/rfc/rfc2396.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">RFC2396</loc>.</p></div3><div3 id="adv-generating-uris"><head>Generating Temporary URIs</head><p>In general, when  a WSDL 2.0 document is published for use by others, it should only contain URIs that are globally unique.  This is usually done by allocating them under a domain name that is controlled by the issuer.   For example, the W3C allocates namespace URIs under its base domain name, w3.org.</p><p>However, it is sometimes desirable to make
up a temporary URI for an entity, for use during development, but not make the URI globally unique
for all time and have it "mean" that version of the
entity (schema, WSDL 2.0 document, etc.).  <emph>Reserved Top Level DNS Names</emph> <bibref ref="RFC2606"/> specifies some URI base names that are reserved for use for this type of behavior. For example, the base
URI <attval>http://example.org/</attval> can be used to
construct a temporary URI without any unique association to an entity.
This means that two people or programs could choose to
simultaneously use the temporary URI <attval>
http://example.org/userSchema</attval> for two completely
different schemas.  As long as the scope of use of these
URIs does not intersect, then they would be unique
enough. However, it is not recommended that <attval>
http://example.org/</attval> be used as a base for stable,
fixed entities.</p></div3></div2>
		</div1>
		
		<!-- ********************************** References ***************** -->
		
		<div1 id="References">
			<head>References</head>
			<div2 id="Normative-References">
				<head>Normative References</head>
				<blist>
					<bibl id="RFC2119" key="IETF RFC 2119" href="http://www.ietf.org/rfc/rfc2119.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Key words for use in RFCs to Indicate Requirement
	    Levels</titleref>, S. Bradner, Author. Internet Engineering
	    Task Force, June 1999. Available at
	    http://www.ietf.org/rfc/rfc2119.txt.
	  </bibl>

	  <bibl id="RFC3986" key="IETF RFC 3986" href="http://www.ietf.org/rfc/rfc3986.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Uniform Resource Identifiers (URI): Generic
	    Syntax</titleref>, T. Berners-Lee, R. Fielding, L. Masinter,
	    Authors. Internet Engineering Task Force, January 2005. Available at http://www.ietf.org/rfc/rfc3986.txt.
	  </bibl>
          <bibl id="RFC3987" key="IETF RFC 3987" href="http://www.ietf.org/rfc/rfc3987.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
            <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Internationalized Resource Identifiers
            (IRIs)</titleref>, M. Duerst, M. Suignard,
            Authors. Internet Engineering Task Force, January
            2005. Available at http://www.ietf.org/rfc/rfc3987.txt.
	  </bibl>

          <bibl id="XML10" key="XML 1.0" href="http://www.w3.org/TR/2004/REC-xml-20040204/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
            <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Extensible Markup Language (XML) 1.0 (Third
	    Edition)</titleref>, T. Bray, J. Paoli,
	    C. M. Sperberg-McQueen, E. Maler, and F. Yergeau, Editors. World Wide
	    Web Consortium, 4 February 2004. This version of the XML 1.0 Recommendation is
	    http://www.w3.org/TR/2004/REC-xml-20040204/. The <loc href="http://www.w3.org/TR/REC-xml" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of "Extensible Markup Language (XML) 1.0"</loc> is available at http://www.w3.org/TR/REC-xml.
	  </bibl>
	            <bibl id="XMLInfoSet" key="XML Information Set" href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
            <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Information Set (Second Edition)</titleref>, J. Cowan and R.
	    Tobin, Editors. World Wide Web Consortium, 4 February 2004.
	    This version of the XML Information Set Recommendation is
	    http://www.w3.org/TR/2004/REC-xml-infoset-20040204. The <loc href="http://www.w3.org/TR/xml-infoset" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	      XML Information Set</loc> is available at
	    http://www.w3.org/TR/xml-infoset.
	  </bibl>
	  
					<bibl id="XMLNS" key="XML Namespaces" href="http://www.w3.org/TR/1999/REC-xml-names-19990114" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Namespaces in XML</titleref>, T. Bray, D.
	    Hollander, and A. Layman, Editors. World Wide Web
	    Consortium, 14 January 1999. This version of the XML
	    Information Set Recommendation is
	    http://www.w3.org/TR/1999/REC-xml-names-19990114. The <loc href="http://www.w3.org/TR/REC-xml-names" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	    Namespaces in XML</loc> is available at
	    http://www.w3.org/TR/REC-xml-names.
	  </bibl>
	  <bibl id="XMLSchemaP1" key="XML Schema: Structures" href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">	    
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Part 1: Structures</titleref>,
	    H. Thompson, D. Beech, M. Maloney, and N. Mendelsohn,
	    Editors. World Wide Web Consortium, 28 October 2004. This version
	    of the XML Schema Part 1 Recommendation is
	    http://www.w3.org/TR/2004/REC-xmlschema-1-20041028. The <loc href="http://www.w3.org/TR/xmlschema-1/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	    XML Schema Part 1</loc> is available at
	    http://www.w3.org/TR/xmlschema-1.
	  </bibl>
	  <bibl key="XML Schema: Datatypes" id="XMLSchemaP2" href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Part 2: Datatypes</titleref>, P. Byron
	    and A. Malhotra, Editors. World Wide Web Consortium, 28
	    October 2004.  This version of the XML Schema Part 2 Recommendation is
	    http://www.w3.org/TR/2004/REC-xmlschema-2-20041028. The <loc href="http://www.w3.org/TR/xmlschema-2/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	    XML Schema Part 2</loc> is available at
	    http://www.w3.org/TR/xmlschema-2.
	  </bibl>

					<bibl key="RFC 3023" href="http://www.ietf.org/rfc/rfc3023.txt" id="RFC3023" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">IETF
	  "RFC 3023: XML Media Types", M. Murata, S. St. Laurent, D. Kohn, July
	  1998.</bibl>

					<bibl key="WSDL 2.0 Core" href="http://www.w3.org/TR/2006/CR-wsdl20-20060327" id="WSDL-PART1" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language</titleref>, R. Chinnici, J-J.
            Moreau, A. Ryman, S. Weerawarana, Editors. World Wide Web Consortium,
            27 March 2006. This version of
            the "Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language" Specification is available is available at
            http://www.w3.org/TR/2006/CR-wsdl20-20060327. The <loc href="http://www.w3.org/TR/wsdl20" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
            "Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language"</loc> is available at http://www.w3.org/TR/wsdl20. </bibl>

	  <bibl key="WSDL 2.0 Adjuncts" href="http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327" id="WSDL-PART2" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
		  Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts
	  	</titleref>, R. Chinnici, H. Haas, A. Lewis, J-J.
	  	Moreau, D. Orchard, S. Weerawarana, Editors.  World
	  	Wide Web Consortium, 27 March
	  	2006.  This version of the "Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts"
	  	Specification is available at
	  	http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327. The
	  	<loc href="http://www.w3.org/TR/wsdl20-adjuncts" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  		latest version of "Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts"
	  	</loc>
	  	is available at
	  	http://www.w3.org/TR/wsdl20-adjuncts.
	  </bibl>

	  <bibl key="WSDL 2.0 SOAP 1.1 Binding" href="http://www.w3.org/TR/2006/WD-wsdl20-soap11-binding-20060327" id="WSDL-SOAP11" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
		  Web Services Description Language (WSDL) Version 2.0 SOAP 1.1 Binding
	  	</titleref>, A. Vedamuthu, Editor.  World
	  	Wide Web Consortium, 27 March
	  	2006.  This version of the "Web Services Description Language (WSDL) Version 2.0 SOAP 1.1 Binding"
	  	Specification is available at
	  	http://www.w3.org/TR/2006/WD-wsdl20-soap11-binding-20060327. The
	  	<loc href="http://www.w3.org/TR/wsdl20-soap11-binding" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  		latest version of "Web Services Description Language (WSDL) Version 2.0 SOAP 1.1 Binding"
	  	</loc>
	  	is available at
	  	http://www.w3.org/TR/wsdl20-soap11-binding.
	  </bibl>

	  <bibl key="WSDL 2.0 RDF Mapping" href="http://www.w3.org/TR/2005/WD-wsdl20-rdf-20051104/" id="RDFmap" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Description (WSDL) Version 2.0:
	    RDF Mapping</titleref>, J. Kopecký, B. Parsia,
	    Editors. W3C Working Draft, 4 November 2005. This version of the "Web Services
	    Description Version 2.0: RDF Mapping" Specification is available
	    at http://www.w3.org/TR/2005/WD-wsdl20-rdf-20051104/. The <loc href="http://www.w3.org/TR/wsdl20-rdf/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of "Web Services
	    Description Version 2.0: RDF Mapping"</loc> is available at
	    http://www.w3.org/TR/wsdl20-rdf/.
	  </bibl>

	  <bibl id="webarch" key="Web Architecture" href="http://www.w3.org/TR/2004/REC-webarch-20041215/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Architecture of the World Wide Web, 
						Volume One</titleref>, Ian Jacobs,  Norman Walsh, Editors. W3C Recommendation, 15 December, 2004.  Available at
	    http://www.w3.org/TR/2004/REC-webarch-20041215/ .
	  </bibl>

				<bibl id="wsarch" key="WS Architecture" href="http://www.w3.org/TR/2004/REC-webarch-20041215/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Architecture</titleref>,     David Booth, 
    Hugo Haas,
    Francis McCabe, 
    Eric Newcomer, 
    Michael Champion,
    Chris Ferris,
    David Orchard, Editors. W3C Working
    Group Note, 11 February 2004.  
	 Available at
	    http://www.w3.org/TR/2004/NOTE-ws-arch-20040211/ .
	  </bibl>
     
	  <bibl key="WS Glossary" href="http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/" id="WSAGLOSS" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
          <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Glossary</titleref>,
    Hugo Haas,
    Allen Brown, Editors. W3C Working Group Note, 11 February 2004.  
	 Available at
	    http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/ .     
		</bibl>
		
	  <bibl key="Describing Media Content of Binary Data in XML" href="http://www.w3.org/TR/xml-media-types/" id="DESCRIBEMEDIA" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	  	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
	  		Describing Media Content of Binary Data in XML
	  	</titleref>, Anish Karmarkar, Ümit Yalçınalp, Editors. W3C Working Group
	  	Note 4 May 2005. Available at
	  	http://www.w3.org/TR/xml-media-types/

	  </bibl>



				</blist>
			</div2>
			
			<div2 id="Informative-References">
				<head>Informative References</head>

				<blist>

					<bibl id="RFC2606" key="IETF RFC 2606" href="http://www.ietf.org/rfc/rfc2606.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Reserved Top Level DNS Names</titleref>, D. Eastlake, A. Panitz, Authors. Network Working Group, Internet Engineering
	    Task Force, June 1999. Available at
	    http://www.ietf.org/rfc/rfc2606.txt.
	  </bibl><bibl id="RFC2616" key="IETF RFC 2616" href="http://www.ietf.org/rfc/rfc2616.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Hypertext Transfer Protocol --
	    HTTP/1.1</titleref>, R. Fielding, J. Gettys, J. Mogul,
	    H. Frystyk, L. Masinter, P. Leach, T. Berners-Lee,
	    Authors. Internet Engineering Task Force, June
	    1999. Available at http://www.ietf.org/rfc/rfc2616.txt.
	  </bibl>
          <bibl id="RFC2818" key="IETF RFC 2818" href="http://www.ietf.org/rfc/rfc2818.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
            <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">HTTP Over TLS</titleref>,
	    E. Rescorla, Author. Internet Engineering
	    Task Force, May 2000. Available at
	    http://www.ietf.org/rfc/rfc2818.txt.
	  </bibl>
					<bibl id="SOAP11" key="SOAP 1.1" href="http://www.w3.org/TR/2000/NOTE-SOAP-20000508/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Simple Object Access Protocol (SOAP)
	    1.1</titleref>, D. Box, D. Ehnebuske, G. Kakivaya,
	    A. Layman, N. Mendelsohn, H. Frystyk Nielsen, S. Thatte,
	    D. Winer, Editors. World Wide Web Consortium, 8 May
	    2000. This version of the Simple Object Access Protocol 1.1
	    Note is http://www.w3.org/TR/2000/NOTE-SOAP-20000508.
	  </bibl>
					<bibl id="SOAP12-PART1" key="SOAP 1.2 Part 1: Messaging Framework" href="http://www.w3.org/TR/2003/REC-soap12-part1-20030624/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">SOAP Version 1.2 Part 1: Messaging
	    Framework</titleref>, M. Gudgin, M. Hadley, N. Mendelsohn,
	    J-J. Moreau, H. Frystyk Nielsen, Editors. World Wide Web
	    Consortium, 24 June 2003. This version of the "SOAP Version
	    1.2 Part 1: Messaging Framework" Recommendation is
	    http://www.w3.org/TR/2003/REC-soap12-part1-20030624/. The
	    <loc href="http://www.w3.org/TR/soap12-part1/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
	    version of "SOAP Version 1.2 Part 1: Messaging
	    Framework"</loc> is available at
	    http://www.w3.org/TR/soap12-part1/.
	  </bibl>
	
	  <bibl id="SOAP12-PART2" key="SOAP 1.2 Part 2: Adjuncts" href="http://www.w3.org/TR/2003/REC-soap12-part2-20030624/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">SOAP Version 1.2 Part 2: Adjuncts</titleref>,
	    M. Gudgin, M. Hadley, N. Mendelsohn, J-J. Moreau, and
	    H. Frystyk Nielsen, Editors. World Wide Web Consortium, 7
	    May 2003. This version of the "SOAP Version 1.2 Part 2:
	    Adjuncts" Recommendation is
	    http://www.w3.org/TR/2003/REC-soap12-part2-20030624/. The
	    <loc href="http://www.w3.org/TR/soap12-part2/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
	    version of "SOAP Version 1.2 Part 2: Adjuncts"</loc> is
	    available at http://www.w3.org/TR/soap12-part2/.
	  </bibl>


					<bibl key="SOAP MTOM" id="SOAP-MTOM" href="http://www.w3.org/TR/2005/REC-soap12-mtom-20050125/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">
							SOAP Message Transmission Optimization
							Mechanism
						</titleref>, M. Gudgin, N. Mendelsohn, M. Nottingham, H.
						Ruellan, Editors. World Wide Web Consortium, 25
						January, 2005. This version of SOAP Message
						Transmission Optimization Mechanism is available
						at
						<loc href="http://www.w3.org/TR/2005/REC-soap12-mtom-20050125/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest"/>
							http://www.w3.org/TR/2005/REC-soap12-mtom-20050125/.
					</bibl>

					<bibl key="WSD Requirements" href="http://www.w3.org/TR/2002/WD-ws-desc-reqs-20021028" id="WSDReqs" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Description
	    Requirements</titleref>, J. Schlimmer, Editor. World Wide
	    Web Consortium, 17 October 2002. This version of the Web
	    Services Description Requirements document is
	    http://www.w3.org/TR/2002/WD-ws-desc-reqs-20021028. The <loc href="http://www.w3.org/TR/ws-desc-reqs/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	    Web Services Description Requirements</loc> is available at
	    http://www.w3.org/TR/ws-desc-reqs.
	  </bibl>

					<bibl key="WS-Addressing" href="http://www.w3.org/TR/ws-addr-core/" id="WS-A" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Services Addressing 1.0 - Core</titleref>, Martin Gudgin, Microsoft Corp,  Marc Hadley, Sun Microsystems, Inc, Editor. World Wide
	    Web Consortium, 17 August 2005. This version of the Web Services Addressing 1.0 - Core document is available at http://www.w3.org/TR/ws-addr-core/. The <loc href="http://www.w3.org/TR/ws-addr-core/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	    Web Services Description Requirements</loc> is available at
	    http://www.w3.org/TR/ws-addr-core/.
	  </bibl>

					<bibl key="XPointer Framework" href="http://www.w3.org/TR/2003/REC-xptr-framework-20030325/" id="XPTR" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XPointer Framework</titleref>,Paul Grosso, Eve
	    Maler, Jonathan Marsh, Norman Walsh, Editors. World Wide Web
	    Consortium, 22 November 2002.  This version of the XPointer
	    Framework Proposed Recommendation is
	    http://www.w3.org/TR/2003/REC-xptr-framework-20030325/ The
	    <loc href="http://www.w3.org/TR/xptr-framework/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
	    version of XPointer Framework</loc> is available at
	    http://www.w3.org/TR/xptr-framework/.
	  </bibl>

					<bibl key="W3C TAG Finding: Use of HTTP GET" href="http://www.w3.org/2001/tag/doc/whenToUseGet.html" id="TAG-whenToUseGET" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">URIs, Addressability, and the use of HTTP GET and POST</titleref>, Ian Jacobs, Editor. World Wide Web
	    Consortium, 21 March 2004.  This version of TAG finding is available at
	    http://www.w3.org/2001/tag/doc/whenToUseGet.html
	  </bibl>


					<bibl key="W3C TAG Finding: Versioning" href="http://www.w3.org/2001/tag/doc/versioning.html" id="TAG-versioning" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Versioning XML Languages</titleref> David Orchard, Norman Walsh. Proposed TAG Finding 16 November 2003. Available at
http://www.w3.org/2001/tag/doc/versioning.html
	  </bibl>
	  

					<bibl key="WebArch: Extensible Languages" href="http://www.w3.org/TR/NOTE-webarch-extlang" id="web-extensible" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Web Architecture: Extensible Languages</titleref> , Tim Berners-Lee, Dan Connolly, Authors. W3C Note 10 Feb 1998. Available at http://www.w3.org/TR/NOTE-webarch-extlang
	  </bibl>
	  
					<bibl key="XML Schema: Versioning Use-Cases" href="http://www.w3.org/XML/2005/xsd-versioning-use-cases/" id="xsd-versioning" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Versioning Use Cases</titleref> , Hoylen Sue. W3C XML Schema Working Group Draft, 15 April 2005. Available at http://www.w3.org/XML/2005/xsd-versioning-use-cases/
	  </bibl>

					<bibl key="SW VocabManagementNote" href="http://esw.w3.org/topic/VocabManagementNote" id="sw-vocabulary" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Vocabulary Management</titleref> , Thomas Baker, et al. Semantic Web Best Practices and Deployment Working Group Note, 8 Feb 2005. Available at
http://esw.w3.org/topic/VocabManagementNote

	  </bibl>
	  					<bibl key="RELAX NG" href="http://www.oasis-open.org/committees/relax-ng/spec-20011203.html" id="relax-ng" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">RELAX NG Specification</titleref>, James Clark, MURATA Makoto, Editors. OASIS Committee Specification, 3 December 2001. Available at http://www.oasis-open.org/committees/relax-ng/spec-20011203.html
	  </bibl>

	  					<bibl key="JAX RPC 1.1" href="http://java.sun.com/xml/downloads/jaxrpc.html" id="jaxrpc" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Java(TM) API for XML-based Remote Procedure Call (JAX-RPC) Specification, version 1.1</titleref>, Roberto Chinnici,et al. 14 October, 2003. Available at http://java.sun.com/xml/downloads/jaxrpc.html
	  </bibl>


	  					<bibl key="REST" href="http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm" id="rest" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Representational State Transfer (REST)</titleref>, Roy Thomas Fielding, Author. 2000. Available at http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
	  </bibl>

	  					<bibl key="RDF" href="http://www.w3.org/TR/rdf-concepts/" id="rdf" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Resource Description Framework (RDF): Concepts and Abstract Syntax</titleref>, Graham Klyne, Jeremy J. Carroll, Editors. W3C Recommendation, 10 February 2004. Available at http://www.w3.org/TR/rdf-concepts/
	  </bibl>

	  					<bibl key="OWL" href="http://www.w3.org/TR/owl-ref/" id="owl" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
						<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">OWL Web Ontology Language Reference</titleref>, Mike Dean,Guus Schreiber, Editors. W3C Recommendation 10 February 2004 . Available at http://www.w3.org/TR/owl-ref/
	  </bibl>

	  <bibl key="Alternative Schema Languages Support" href="http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/altschemalangs.html?content-type=text/html;%20charset=utf-8&amp;rev=1.3" id="altschemalangs" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	    <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Discussion of Alternative Schema Languages and
	    Type System Support in WSDL</titleref>, A. Lewis,
	    B. Parsia, Editors.</bibl>

	  </blist>
	</div2>
      </div1>
	</body>
	<back>
		
<inform-div1 id="acknowledgments">
  <head>Acknowledgements</head>
  <p>This document is the work of the <loc href="http://www.w3.org/2002/ws/desc/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C Web Service
      Description Working Group</loc>.</p>
  <p>Members of the Working Group are (at the time of writing, and by
      alphabetical order):
      Rebecca Bergersen
	(IONA Technologies), Allen Brookes
	(Rogue Wave Softwave), Dave Chappell
	(Sonic Software), Helen Chen
	(Agfa-Gevaert N. V.), Roberto Chinnici
	(Sun Microsystems), Kendall Clark
	(University of Maryland), Ugo Corda
	(SeeBeyond), Glen Daniels
	(Sonic Software), Paul Downey
	(British Telecommunications), Youenn Fablet
	(Canon), Hugo Haas
	(W3C), Tom Jordahl
	(Macromedia), Anish Karmarkar
	(Oracle Corporation), Jacek Kopecky
	(DERI Innsbruck at the Leopold-Franzens-Universität
      Innsbruck, Austria), Amelia Lewis
	(TIBCO Software, Inc.), Michael Liddy
	(Education.au Ltd.), Kevin Canyang Liu
	(SAP AG), Jonathan Marsh
	(Microsoft Corporation), Josephine Micallef
	(SAIC - Telcordia Technologies), Jeff Mischkinsky
	(Oracle Corporation), Dale Moberg
	(Cyclone Commerce), Jean-Jacques Moreau
	(Canon), Mark Nottingham
	(BEA Systems, Inc.), David Orchard
	(BEA Systems, Inc.), Vivek Pandey
	(Sun Microsystems), Bijan Parsia
	(University of Maryland), Gilbert Pilz
	(BEA Systems, Inc.), Tony Rogers
	(Computer Associates), Arthur Ryman
	(IBM), Adi Sakala
	(IONA Technologies), Asir Vedamuthu
	(Microsoft Corporation), Sanjiva Weerawarana
	(WSO2), Ümit Yalçınalp
	(SAP AG).</p>
  <p>Previous members were:
      Lily Liu
	(webMethods, Inc.), Don Wright
	(Lexmark), Joyce Yang
	(Oracle Corporation), Daniel Schutzer
	(Citigroup), Dave Solo
	(Citigroup), Stefano Pogliani
	(Sun Microsystems), William Stumbo
	(Xerox), Stephen White
	(SeeBeyond), Barbara Zengler
	(DaimlerChrysler Research and Technology), Tim Finin
	(University of Maryland), Laurent De Teneuille
	(L'Echangeur), Johan Pauhlsson
	(L'Echangeur), Mark Jones
	(AT&amp;T), Steve Lind
	(AT&amp;T), Sandra Swearingen
	(U.S. Department of Defense, U.S. Air Force), Philippe Le Hégaret
	(W3C), Jim Hendler
	(University of Maryland), Dietmar Gaertner
	(Software AG), Michael Champion
	(Software AG), Don Mullen
	(TIBCO Software, Inc.), Steve Graham
	(Global Grid Forum), Steve Tuecke
	(Global Grid Forum), Michael Mahan
	(Nokia), Bryan Thompson
	(Hicks &amp; Associates), Ingo Melzer
	(DaimlerChrysler Research and Technology), Sandeep Kumar
	(Cisco Systems), Alan Davies
	(SeeBeyond), Jacek Kopecky
	(Systinet), Mike Ballantyne
	(Electronic Data Systems), Mike Davoren
	(W. W. Grainger), Dan Kulp
	(IONA Technologies), Mike McHugh
	(W. W. Grainger), Michael Mealling
	(Verisign), Waqar Sadiq
	(Electronic Data Systems), Yaron Goland
	(BEA Systems, Inc.), Ümit Yalçınalp
	(Oracle Corporation), Peter Madziak
	(Agfa-Gevaert N. V.), Jeffrey Schlimmer
	(Microsoft Corporation), Hao He
	(The Thomson Corporation), Erik Ackerman
	(Lexmark), Jerry Thrasher
	(Lexmark), Prasad Yendluri
	(webMethods, Inc.), William Vambenepe
	(Hewlett-Packard Company), David Booth
	(W3C), Sanjiva Weerawarana
	(IBM), Charlton Barreto
	(webMethods, Inc.), Asir Vedamuthu
	(webMethods, Inc.), Igor Sedukhin
	(Computer Associates), Martin Gudgin
	(Microsoft Corporation).</p>
  <p>The people who have contributed to <loc href="http://lists.w3.org/Archives/Public/www-ws-desc/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">discussions
      on www-ws-desc@w3.org</loc> are also gratefully
      acknowledged.</p>
</inform-div1>

	</back>
</spec>
