THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The typical syntax of a WSDL document is shown in the following example.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<definitions> <types> definition of types.... </types> <message> definition of message.... </message> <portType> definition of portType.... </portType> <binding> definition of binding.... </binding> <service> definition of service.... </service> </definitions> |
...
Let us try to understand each element in a WSDL document using a HelloWorld.wsdl
document. This WSDL document is automatically generated by the Geronimo Eclipse Plugin (GEP). With the tutorials listed at the end of this document you will learn how to generate it using Eclipse and GEP.
Code Block | borderStyle | solid|||
---|---|---|---|---|
| ||||
<!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)--> <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions> <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://webservices" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="hello"> <complexType/> </element> <element name="helloResponse"> <complexType/> </element> </schema> </wsdl:types> <wsdl:message name="helloRequest"> <wsdl:part element="intf:hello" name="parameters"/> </wsdl:message> <wsdl:message name="helloResponse"> <wsdl:part element="intf:helloResponse" name="parameters"/> </wsdl:message> <wsdl:portType name="HelloWorld"> <wsdl:operation name="hello"> <wsdl:input message="intf:helloRequest" name="helloRequest"/> <wsdl:output message="intf:helloResponse" name="helloResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloWorldSoapBinding" type="intf:HelloWorld"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="hello"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="helloRequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="helloResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HelloWorldService"> <wsdl:port binding="intf:HelloWorldSoapBinding" name="HelloWorld"> <wsdlsoap:address location="http://localhost:8080/SimpleWeb/services/HelloWorld"/> </wsdl:port> </wsdl:service> </wsdl:definitions> |
...