1) Explain what is WSDL?
WSDL stands for Web Services Description Language. It is a simple XML document that contains a set of definitions to describe or locate a web service.
2) Explain what is the WSDL document structure?
The WSDL document structure consists of these major elements
3) What is the prefix used for the target namespace for the WSDL document?
Prefix “xmlns:tns=target name” is used for target namespace for the WSDL document.
4) Explain what is message element in WSDL?
5) Mention the operation types response used in WSDL?
WSDL defines four types response. Request response is the most common operation type.
6) What does <definition> element define in WSDL?
In WSDL, definition element is the main or root element of all WSDL documents, it defines the name of the web service.
7) Explain what does the “types” define in WSDL?
8) Explain what is “soap:body”?
“soap:body” is a SOAP extension element used as a sub element of the “wsdl:input/output” inside the wsdl binding and operation. It is used to provide information on how the content of the SOAP body element is constructed.
9) Explain how WSDL can bind to SOAP?
The binding is possible by two attributes- name and type attributes. The name attribute defines the name of the binding and type attribute defines the port for the binding.
While, for SOAP binding you need to declare two attributes- transport and style. The transport attributes defines the SOAP protocol (HTTP) while style attribute defines the “rpc” or “document”.
10) Explain what is UDDI and it communicates via which protocol?
UDDI stands for Universal Description, Discovery, and Integration. It is a directory used for storing information about web services. It communicates via SOAP.
11) Mention what things need to be taken care for ports while binding?
12) Explain what is the difference between SOAP message and WSDL?
A SOAP message is an XML document which is used to transmit your data while WSDL is an XML document which tells how to connect and make requests to your web service.
13) Explain what is end points in WSDL?
In WSDL, end point is referred to an address and a binding
14) Explain how endpoints are defined in WSDL?
Endpoints represent an instantiated service; they are determined by combining a binding and the networking details used to expose the endpoint. Endpoints are defined in a contract using a combination of the WSDL port elemennt and WSDL service element. The port elements define the actual endpoints
15) Explain what is the difference between Message type and Element in WSDL?
Message type: It creates variable based on a message type that you defined in WSDL
Element type: It creates variable based on an element that you defined in Schema
16) How to validate WSDL file?
WSDL file is a contract between consumer and web service clients. A WSDL validator verifies whether the file can be consumed by other applications before you give the url to your end-users. To validate your file you need to set your criteria like
You can use a commercial tool like XMLSpy to validate WSDL file.
17) Explain what is the difference between binding and port type in WSDL?
WSDL Port: The WSDL port type element defines a group of operations known as an interface in most environments. Each operation consist of a combination of input and output elements. The order of these elements determine the message exchange pattern (MEP)
WSDL Binding: The WSDL binding element describes the details of using specific portType with a given protocol
18) List out the characteristics of port and service in WSDL?