Information Technology Reference
In-Depth Information
[...]
< wsdl:types >
[...]
< s:element name=”GetWeather” >
< s:complexType >
< s:sequence >
< s:element minOccurs=”0” maxOccurs=”1” name=”CityName” type=”s:string” / >
< s:element minOccurs=”0” maxOccurs=”1” name=”CountryName” type=”s:string” / >
< /s:sequence >
< /s:complexType >
< /s:element >
[...]
< /wsdl:types >
< wsdl:message name=”GetWeatherIn” >
< wsdl:part name=”parameters” element=”tns:GetWeather” / >
< /wsdl:message >
[...]
< wsdl:portType name=”GlobalWeather” >
< wsdl:operation name=”GetWeather” >
< wsdl:input message=”tns:GetWeatherSoapIn” / >
< wsdl:output message=”tns:GetWeatherSoapOut” / >
< /wsdl:operation >
[...]
Listing 4.3. A signature definition in a WSDL file
[...]
< wsdl:binding name=”GlobalWeatherSoap” type=”tns:GlobalWeather” >
< soap:binding transport=”http://schemas.xmlsoap.org/soap/http” style=”document” / >
< wsdl:operation name=”GetWeather” >
< soap:operation soapAction=”http://www.webservicex.net/GetWeather” style=”document” / >
< wsdl:input >< soap:body use=”literal” / >< /wsdl:input >
< wsdl:output >< soap:body use=”literal” / >< /wsdl:output >
< /wsdl:operation >
[..]
< /wsdl:binding >
< wsdl:service name=”GlobalWeather” >
< wsdl:port name=”GlobalWeatherSoap” binding=”tns:GlobalWeatherSoap” >
< soap:address location=”http://www.webservicex.net/globalweather.asmx” / >
< /wsdl:port >
[...]
< /wsdl:service >
Listing 4.4. Sample WSDL binding
Listing 4.4 maps the abstract definition to a concrete protocol. The
GlobalWeatherSoap binding defines a binding using SOAP over HTTP. Fi-
nally, in the service element, the actual endpoint ( soap:address ) is declared.
With this short example, we have illustrated a number of features of
WSDL: (1) XML Schema can be reused for type declaration; (2) interfaces
(operation + PortType) are defined independently of the transport protocol;
(3) an interface can be easily reused for several different bindings.
4.3.3 UDDI
UDDI offers an interface which allows business partners and (external) service
providers to dynamically find one another. An UDDI server is accessible via a
Web service interface and offers operations such as publication and querying
of services.
Search WWH ::




Custom Search