WSDL Interview FAQ's Questions & Answer
What is WSDL?
WSDL is stands for Web Services Description Language.Basically WSDL is fully based on XML.Main use of WSDL to describe the web services and also told how to use this web services.It is written on XML. Also WSDL has W3C RecommendationHow you define WSDL document?
WSDL given us many element to describe its document. I have only given you four elements which are main elements to describing WSDL document.These are:
1. <portType> is an important element to describe WSDL document.Using this element we can perform a task to compare a function library(like: class) in traditional programming language.
2. each <message> element has more than one parts.we can compare that parts.
3. using <types> we can define datatypes that are used in web services.
4.using <binding> for each port we can define the format of messages and details of protocol.
syntax:
<definitions>
<types>
To define type here
</types>
<message>
To define message here
</message>
<portType>
To define portType here
</portType>
<binding>
To define binding here
</binding>
</definitions>
Use of <binding> element in WSDL.
to communicate protocols used by web service
WSDL Ports
The element is the most important WSDL element.
It describes a web service, the operations that can be performed, and the messages that are involved.
The element can be compared to a function library (or a module, or a class) in a traditional programming language.
WSDL Messages
The element defines the data elements of an operation.
Each message can consist of one or more parts. The parts can be compared to the parameters of a function call in a traditional programming language.
WSDL Types
The element defines the data type that are used by the web service.
For maximum platform neutrality, WSDL uses XML Schema syntax to define data types.
What is the meaning of semantic cannotations?
A semantic annotation is additional information in a document that defines the semantics of a part of that document. In this technical note, the semantic annotations are additional information elements in a WSDL document. They define semantics by referring to a part of a semantic model that describes the semantics of the part of the document being annotated.The WSDL document forms the anchor point for Web services description. Building on the descriptive capability of WSDL, a mechanism is provided to annotate the capabilities and requirements of Web services with semantic concepts referenced from a semantic model. To do this, mechanisms are provided annotate the service and its inputs, outputs and operations. Additionally, we provide mechanisms to specify and annotate preconditions and effects of Web Services.These preconditions and effects together with the semantic annotations of inputs and outputs can enable automation of the process of service discovery.