topical media & game development

talk show tell print

basic-xml-15-listing30all.xml / xml



  <?xml version="1.0"?>
  <definitions name="temperature" 
      targetNamespace="http://www.example.com/temperature" 
      xmlns:typens="http://www.example.com/temperature" 
      xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
      xmlns="http://schemas.xmlsoap.org/wsdl/">
  
     <types>
        <xsd:schema xmlns="" 
             xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
             targetNamespace="http://www.example.com/temperature">
           <xsd:complexType name="temperatureRequestType">
              <xsd:sequence>
                 <xsd:element name="where" type="xsd:string" />
                 <xsd:element name="when" type="xsd:date"/>
              </xsd:sequence>
           </xsd:complexType>
           <xsd:complexType name="temperatureResponseType">
              <xsd:sequence>
                 <xsd:element name="temperature" type="xsd:integer"/>
              </xsd:sequence>
           </xsd:complexType>
        </xsd:schema>
     </types>
  
     <message name="TemperatureRequestMsg">
        <part name="getTemperature" type="typens:temperatureRequestType"/>
     </message>
     <message name="TemperatureResponseMsg">
        <part name="temperatureResponse" type="typens:temperatureResponseType"/>
     </message>
  
     <portType name="TemperatureServicePortType">
        <operation name="GetTemperature">
           <input message="typens:TemperatureRequestMsg"/>
           <output message="typens:TemperatureResponseMsg"/>
        </operation>
     </portType>
  
  </definitions>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.