Following is the HelloWorld.wsdl located in your <installdir>\tutorials\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="encoded" namespace="hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </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 |
//2 | <portType> name=GreetingPortType Consists of sayHello request-response operation with | |
//3 | Concrete Details | <binding> name=GreetingBinding Specifies either an HTTP or HTTPS SOAP transport protocol |
//4 | <service> name = GreetingService Specifies concrete port and binding. Port includes a concrete address for invoking the HelloWorldService at |
The operation sayHello receives a message containing an XML Schema string. The operation then returns a message containing an XML Schema string that holds the string, "Hello World!"
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.