Web Service Development Guide : PART I Getting Started : Chapter 3 Creating a Web Service : Service Description
Service Description
Following is the HelloWorld.wsdl located in your <installdir>\examples\webservices\HelloWorld directory.
<?xml version="1.0"?>
 
<definitions name="HelloWorldService"
xmlns:tns="http://www.roguewave.com/webservice/examples/HelloWorld.wsdl"
targetNamespace="http://www.roguewave.com/webservice/examples/HelloWorld.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="HelloRequest"> //1
<part name="hellorequest" type="xsd:string"/>
</message>
<message name="HelloResponse">
<part name="return" type="xsd:string"/>
</message>
<portType name="GreetingPortType"> //2
<operation name="sayHello">
<input message="tns:HelloRequest" />
<output message="tns:HelloResponse" />
</operation>
</portType>
<binding name="GreetingBinding" type="tns:GreetingPortType"> //3
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sayHello">
<soap:operation soapAction="say_hello"/>
<input>
<soap:body use="literal"
attribute="http://www.roguewave.com/rwsf/webservice/examples"/>
</input>
<output>
<soap:body use="literal"
attribute="http://www.roguewave.com/rwsf/webservice/examples"/>
</output>
</operation>
</binding>
<service name="GreetingService"> //4
<documentation>Basic Hello World Service.</documentation>
<port name="GreetingPort" binding="tns:GreetingBinding">
<soap:address location="http://localhost:8090/helloworld/HelloWorld"/>
</port>
</service>
</definitions>
Table 1 – WSDL description for the HelloWorldService
 
 
<Definitions>: The HelloWorldService
//1
Abstract Details
<message>
name=HelloRequest
name=HelloResponse
Request and response messages, each with one string part.
//2
 
<portType>
name=GreetingPortType
Defines sayHello request-response operation with input message HelloRequest and output message HelloResponse.
//3
Concrete Details
<binding>
name=GreetingBinding
The SOAP binding specifies that an RPC SOAP message will be sent via the HTTP or HTTPS transport protocol.
//4
 
<service>
name = GreetingService
Specifies concrete port and binding. Port includes a concrete address for invoking the HelloWorldService at http://localhost:8090/helloworld/HelloWorld
The operation sayHello receives a message containing a string. The operation then returns a message containing a string that holds the value, “Hello World!”