Table of Contents
ToggleKey features of WSDL:
- It is an integral part of the universal description, discovery and integration (UDDI)
- It is also pronounced as wiz-dull
- This language is also used to describe how to interface with XML based service
- To define the operation web service will define.
There are mainly 5 main elements of WSDL
- Type tag
- Message tag
- Prototype tag
- Binding tag
- Service tag

It can be compared to a postcard which contains the particular location address. Similarly, the WSDL file is having an address of web service.Also this web service delivers all the functionality that the client seeks for.
Below there are varios types of sample WSDL file example uploaded there just go through it and use it. You can also download wsdl file for demo use.
<types> <schema targetNamespace = "http://example.com/stockquote.xsd" xmlns = "http://www.w3.org/2000/10/XMLSchema"> <element name = "TradePriceRequest"> <complexType> <all> <element name = "tickerSymbol" type = "string"/> </all> </complexType> </element>
<element name = "TradePrice">
<complexType>
<all>
<element name = "price" type = "float"/>
</all>
</complexType>
</element>
</schema>
</types>
Message element in WSDL File – The information being transferred between web service providers and customers is described in the <message> element. Below we uploded some samples of wsdl message element file.
<message name = "SayHelloRequest"> <part name = "firstName" type = "xsd:string"/> </message>
<message name = “SayHelloResponse”>
<part name = “greeting” type = “xsd:string”/>
</message>
Prototype tag in WSDL File – Multiple message components are combined into a one-way or round-trip operation by the portType> element.
One request and one response message, for instance, can be combined into a single request/response operation using a portType>. The majority of the time, SOAP services use this. Multiple operations may be defined by a portType.
<portType name = "HeyPortType"> <operation name = "sayHey"> <input message = "tns:SayHeyRequest"/> <output message = "tns:SayHeyResponse"/> </operation> </portType>

Hello, I am Denail Soovy. I am a developer of different technology. I am passionate about teaching and Daily teaching many students. I want to share knowledge with all of the developers or other people who need it.
I will try to teach every student with my easy and updated blogs.