WSDL Interview Questions & Answers

  1. Question 1. Explain What Is Wsdl?

    Answer :

    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. Question 2. What Is Soap, Uddi And Wsdl?

    Answer :

    • SOAP (Simple Object Access Protocol) is a simple protocol for exchange of information. It is based on XML and consists of three parts: a SOAP envelope (describing what’s in the message and how to process it); a set of encoding rules, and a convention for representing RPCs (Remote Procedure Calls) and responses.
    • UDDI (Universal Description, Discovery, and Integration) is a specification designed to allow businesses of all sizes to benefit in the new digital economy. There is a UDDI registry, which is open to everybody. Membership is free and members can enter details about themselves and the services they provide. Searches can be performed by company name, specific service, or types of service. This allows companies providing or needing web services to discover each other, define how they interact over the Internet and share such information in a truly global and standardized fashion.
    • WSDL (Web Services Description Language) defines the XML grammar for describing services as collections of communication endpoints capable of exchanging messages. Companies can publish WSDLs for services they provide and others can access those services using the information in the WSDL. Links to WSDLs are usually offered in a company’s profile in the UDDI registry.
  3. Python Interview Questions

  4. Question 3. What Is The Prefix Used For The Target Namespace For The Wsdl Document?

    Answer :

    Prefix “xmlns:tns=target name” is used for target namespace for the WSDL document.

  5. Question 4. Can You Define Basic Element Of Web Services And Explain Any One From Them?

    Answer :

    These are as follows SOAP, WSDL and UDDI. And I am explaining about the SOAP(Simple Object Access Protocol) it is a communication protocol it is for communication between application it is platform and language independent. It is based on XML and also help to get from Firewall.

  6. Python Tutorial

  7. Question 5. Mention The Operation Types Response Used In Wsdl?

    Answer :

    WSDL defines four types response. Request response is the most common operation type.

    • One way: It can receive a message but will not return response.
    • Request response: It receives a request and will return a response.
    • Solicit response: It sends a request and will wait for response.
    • Notification: It sends a message but will not wait for a response.
  8. Soap Tool Interview Questions

  9. Question 6. Is It Possible To Generate The Source Code For An Asp.net Web Service From A Wsdl?

    Answer :

    The Wsdl.exe tool (.NET Framework SDK) can be used to generate source code for an ASP.NET web service with its WSDL link.

  10. Question 7. Explain What Does The “types” Define In Wsdl?

    Answer :

    • The type element defines all the data types used between the server and the client.
    • To define data types WSDL uses the W3C XML Schema Specification as its default choice.
    • Type element is not required if the service uses only simple XML schema types like integers and strings.
    • To reuse the type with multiple web services, WSDL allows to define types in a separate elements.
  11. XML Tutorial
    XML Interview Questions

  12. Question 8. What Is Web Service?

    Answer :

    We can assume a web service as a method over the web, It actually takes the parameter and give the result in the XML format for independablity.furthermore, It use SOAP formatted XML envelops and use WSDL for interfacing.

  13. Question 9. Explain What Is “soap: Body”?

    Answer :

    “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.

  14. J2EE Interview Questions

  15. Question 10. What Is The Meaning Of Semantic Connotations?

    Answer :

    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.

  16. J2EE Tutorial

  17. Question 11. Explain How Wsdl Can Bind To Soap?

    Answer :

    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”.

  18. JDBC Interview Questions

  19. Question 12. How Do I Get Started With A Web Services?

    Answer :

    The easiest way to get started with Web services is to learn XML-RPC. Check out the XML-RPC specification or read my book, Web Services Essentials. O’Reilly has also recently released a book on Programming Web Services with XML-RPC by Simon St.Laurent, Joe Johnston, and Edd Dumbbells.

    Once you have learned the basics of XML-RPC, move onto SOAP, WSDL, and UDDI. These topics are also covered in Web Services Essentials. For a comprehensive treatment of SOAP, check out O’Reilly’s Programming Web Services with SOAP, by Doug Tidwell, James Snell, and Pavel Kulchenko.

  20. Python Interview Questions

  21. Question 13. Explain What Is Uddi And It Communicates Via Which Protocol?

    Answer :

    UDDI stands for Universal Description, Discovery, and Integration. It is a directory used for storing information about web services. It communicates via SOAP.

  22. JDBC Tutorial

  23. Question 14. List Out The Characteristics Of Port And Service In Wsdl?

    Answer :

    • A service may have more than one endpoint with each one defined by its own port element.
    • The port element relates to a specific binding, and contains information on how to access it (URI).
    • Different ports signify different binding for the same port type- enabling the same functionality to be accessible via multiple transport protocols and interaction styles.
  24. Question 15. Mention What Things Need To Be Taken Care For Ports While Binding?

    Answer :

    While binding,

    • A port must not determine more than one address.
    • A port must not determine any binding information other than address information.
  25. Oracle 11g Interview Questions

  26. Question 16. Explain What Is The Difference Between Binding And Port Type In Wsdl?

    Answer :

    WSDL Port: The WSDL port type element defines a group of operations known as an interface in most environments. Each operation consists 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 port Type with a given protocol.

  27. Oracle 11g Tutorial

  28. Question 17. Explain What Is The Difference Between Soap Message And Wsdl?

    Answer :

    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.

  29. Java-Springs Interview Questions

  30. Question 18. Explain What Is Endpoints In Wsdl?

    Answer :

    In WSDL, end point is referred to an address and a binding.

  31. Soap Tool Interview Questions

  32. Question 19. How To Validate Wsdl File?

    Answer :

    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

    • Does it require to be validating according to WSDL XML schema.
    • Does it require fulfilling with known best practices.
    • Does it require to be parsed correctly by common soap stacks you can use a commercial tool like XMLSpy to validate WSDL file.
  33. Java-Springs Tutorial

  34. Question 20. Explain How Endpoints Are Defined In Wsdl?

    Answer :

    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 element and WSDL service element. The port elements define the actual endpoints.

  35. Soap UI Interview Questions

  36. Question 21. Explain What Is The Difference Between Message Type And Element In Wsdl?

    Answer :

    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.