Java Reference
In-Depth Information
This SOAP server translates English to “Pig Latin”. Pig Latin is a simple language game
based on English. English can be quickly translated to Pig Latin by following a set of rules.
For more information on Pig Latin visit the following URL:
http://en.wikipedia.org/wiki/Pig_latin
It is not important to understand Pig Latin for this example. It is simply used to create a
simple web service.
Using WSDL Information
Most web services make use of a single HTTP page that describes the types of requests
that a SOAP server can handle. This page is in a special XML format called the Web Service
Definition Language (WSDL). The Pig Latin web server supports such a page. To see the
WSDL from the Pig Latin SOAP server, visit the following URL:
http://www.httprecipes.com/1/11/soap/?wsdl
You can see the output from the above URL in Listing 11.1:
Listing 11.1: Pig Latin Server's WSDL
<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.httprecipes.com/1/11/soap/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.httprecipes.com/1/11/soap/">
<types>
<xsd:schema
targetNamespace="http://www.httprecipes.com/1/11/soap/">
<xsd:import
namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
</xsd:schema>
</types>
<message name="translateRequest">
<part name="inputString" type="xsd:string" />
</message>
Search WWH ::




Custom Search