0
5.2kviews
Describe the significance & working of WSDL with an example.
1 Answer
written 6.2 years ago by |
WSDL is the standard format for describing a Web service. WSDL was developed jointly by Microsoft and IBM.
Significance of WSDL
Working of WSDL
<definitions name = "HelloService" targetNamespace = "https://www.examples.com/wsdl/HelloService.wsdl" xmlns = "https://schemas.xmlsoap.org/wsdl/" xmlns:soap = "https://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns = "https://www.examples.com/wsdl/HelloService.wsdl" xmlns:xsd = "https://www.w3.org/2001/XMLSchema"> <message name = "SayHelloRequest"> <part name = "firstName" type = "xsd:string"/> </message> <message name = "SayHelloResponse"> <part name = "greeting" type = "xsd:string"/> </message> <portType name = "Hello_PortType"> <operation name = "sayHello"> <input message = "tns:SayHelloRequest"/> <output message = "tns:SayHelloResponse"/> </operation> </portType> <binding name = "Hello_Binding" type = "tns:Hello_PortType"> <soap:binding style = "rpc" transport = "https://schemas.xmlsoap.org/soap/http"/> <operation name = "sayHello"> <soap:operation soapAction = "sayHello"/> <input> <soap:body encodingStyle = "https://schemas.xmlsoap.org/soap/encoding/" namespace = "urn:examples:helloservice" use = "encoded"/> </input> <output> <soap:body encodingStyle = "https://schemas.xmlsoap.org/soap/encoding/" namespace = "urn:examples:helloservice" use = "encoded"/> </output> </operation> </binding> <service name = "Hello_Service"> <documentation>WSDL File for HelloService</documentation> <port binding = "tns:Hello_Binding" name = "Hello_Port"> <soap:address location = "https://www.examples.com/SayHello/" /> </port> </service> </definitions>
Example Analysis
https://www.examples.com/SayHello/
https://www.examples.com/SayHello/
where the running service can be accessed.