WSDL is an XML language used to describe web services, defining operations provided by the service, data formats, and location. It describes what a service does via operations, how it is accessed via protocols and data formats, and where it is located via URLs. A WSDL document defines types, messages, operations, bindings and services. Translators can generate code from WSDL or derive WSDL from existing code.
Report
Share
Report
Share
1 of 10
More Related Content
WSDL in Mule Esb
2. Web Service Definition Language
Predecessors include
• COM, CORBA IDLs
• Network Accessible Service Specification
Language (IBM)
• SOAP Contract Language (Microsoft)
• First submitted to W3C in Sep 2000
• Current version is 1.1
3. Define a web service in WSDL by
• Writing an XML document conforming to the WSDL
specs
Describes three fundamental properties
• What a service does
Operations (methods) provided by the service
• How a service is accessed
Data format and protocol details
• Where a service is located
Address (URL) details
4. types
message
portType
binding
service
All the data types used by the Web service
Parameters and messages used by method
port
Abstract interface definition – each operation element
defines a method signatureoperation
Binds abstract methods to specific protocols
A service is a collection of ports.
A port is a specific method and its URI
definitions
7. Sample WSDL: getQuote
<service name="net.xmethods.services.stockquote.StockQuoteService">
<documentation>net.xmethods.services.stockquote.StockQuote web service
</documentation>
<port name="net.xmethods.services.stockquote.StockQuotePort"
binding="tns:net.xmethods.services.stockquote.StockQuoteBinding">
<soap:address location="http://64.39.29.211:9090/soap" />
</port>
</service>
</definitions>
8. Translators available that can
• Convert WSDL document to code
IBM’s WSTK Toolkit
Apache AXIS WSDL2java program
Soapy.py in Python
Not perfect
• Derive WSDL from Java classes
Apache WSDL program
Much work remains to be done