Esempio di descrizione di un servizio


<definitions name="Temperature"
targetNamespace="http://weather.example.com/USservice"
[... xmlns declarations ...]>

<types>
<xsd:schema
targetNamespace="http://wheather.example.com/USservice.xsd">
<xsd:element name="temperature"           
type='xsd:short' />
</xsd:schema>
</types>

<message name="message1">
<part name="zipcode"   
type="xsd:nonNegativeInteger"/>
</message>
<message name="message2">
<part name="temperature" type="xus:temperature"/>
</message>

<interface name="Temperature1">
<operation name="getTemperature">
<input message="us:message1"/>
<output message="us:message2"/>
</operation>
</interface>

<interfaceBinding name="TemperatureGETBinding"
type="us:Temperature1">
<http:binding verb="GET"/>
<operation name="us:getTemperature">
<http:operation 
location="GetTemperature"/>
<input>
<http:urlEncoded />
</input>
<output>
<mime:content type="application/xml"/>
</output>
</operation>
</interfaceBinding>

<service name="USTemperatureService">
<endpoint name="get"
binding="us:TemperatureGETBinding">
<http:address
location="http://weather.example.com/" />
</endpoint>
</service>

</definitions>