Web Services Review Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Dreamdude
D
Dreamdude
Community Contributor
Quizzes Created: 2 | Total Attempts: 24,248
Questions: 17 | Attempts: 20,946

SettingsSettingsSettings
Web Services Review Quiz - Quiz

Think you have good knowledge about Web Services? Take this 'Web Services Review' quiz and see how well you know about this topic. Web services are pieces of software that make themselves available over the internet and use standardized XML messaging systems – which encode all communications to a web service. Let's see how well you know about them. Take this quiz and judge your knowledge with the score you get. So, are you ready to start the test? All the best!


Questions and Answers
  • 1. 

    Web services components are written in which Markup Language?

    • A.

      SGML

    • B.

      HTML

    • C.

      XHTML

    • D.

      XML

    • E.

      DTD

    Correct Answer
    D. XML
    Explanation
    XML stands for Extensible Markup Language. It is a markup language that is used for encoding documents in a format that is both human-readable and machine-readable. XML is commonly used for representing web services components because it allows for the structured and organized representation of data. Unlike HTML, which is primarily used for displaying web pages, XML is designed to store and transport data. Therefore, XML is the correct answer for this question.

    Rate this question:

  • 2. 

    Web Services are

    • A.

      Loosely Coupled

    • B.

      Tightly Coupled

    • C.

      Either Loosely or Tightly Coupled

    • D.

      Neither Loosely nor Tightly Coupled

    • E.

      Both Loosely and Tightly Coupled

    Correct Answer
    A. Loosely Coupled
    Explanation
    Web services are loosely coupled. Loosely coupled refers to a design principle where the components of a system are independent and can function separately from each other. In the case of web services, this means that the service provider and service consumer can evolve independently, without affecting each other. They can be developed and deployed using different technologies and platforms, as long as they adhere to a common set of standards and protocols for communication. This loose coupling allows for flexibility, scalability, and easier integration of different systems.

    Rate this question:

  • 3. 

    Which component of Web Services acts as a directory?

    • A.

      UDDI

    • B.

      XML

    • C.

      SOAP

    • D.

      WSIL

    • E.

      WSDL

    Correct Answer(s)
    A. UDDI
    D. WSIL
    Explanation
    UDDI (Universal Description, Discovery, and Integration) and WSIL (Web Services Inspection Language) both act as directories in Web Services. UDDI is a specification that provides a platform-independent registry for businesses to list and discover web services. It allows service providers to publish their services and service consumers to search and find the desired services. WSIL, on the other hand, is an XML-based format that provides a directory of available web services. It allows users to discover and browse through different web services available on a particular server. Therefore, both UDDI and WSIL can be considered as components of Web Services that act as directories.

    Rate this question:

  • 4. 

    What does SOAP define?

    • A.

      The overall structure of the XML message

    • B.

      The conventions representing the remote procedure call in the XML message

    • C.

      A binding to HTTP

    • D.

      The type of client to be used

    • E.

      The conventions to wrap and send an error back to the sender

    Correct Answer(s)
    A. The overall structure of the XML message
    B. The conventions representing the remote procedure call in the XML message
    C. A binding to HTTP
    E. The conventions to wrap and send an error back to the sender
    Explanation
    SOAP (Simple Object Access Protocol) defines the overall structure of the XML message, including the conventions representing the remote procedure call in the XML message. It also provides a binding to HTTP, allowing the XML message to be transmitted over the internet. Additionally, SOAP specifies the conventions to wrap and send an error back to the sender, ensuring proper error handling in the communication process.

    Rate this question:

  • 5. 

    UDDI is a registry and a repository.

    • A.

      True, because it allows functional specification like schemas and WSDL to be stored in it.

    • B.

      False, because the actual content is never stored in UDDI.

    • C.

      True, because it allows implementation details to be stored in it.

    • D.

      False, because the actual content is always stored in UDDI.

    • E.

      True, because it also allows business documents like schemas and WSDL to be stored in it.

    Correct Answer
    B. False, because the actual content is never stored in UDDI.
    Explanation
    UDDI is a registry and a repository, but it does not store the actual content. Instead, it stores metadata and information about the content, such as functional specifications, implementation details, and business documents like schemas and WSDL. The actual content is stored elsewhere, and UDDI provides a way to locate and access that content. Therefore, the statement "False, because the actual content is never stored in UDDI" is the correct explanation.

    Rate this question:

  • 6. 

    Which of the following style(s) is/are Strictly WS-I compliant?

    • A.

      Document/encoded

    • B.

      RPC/literal

    • C.

      Document/literal

    • D.

      RPC/encoded

    • E.

      Document/literal Wrapped

    Correct Answer(s)
    B. RPC/literal
    E. Document/literal Wrapped
    Explanation
    The WS-I (Web Services Interoperability) compliance defines a set of standards and guidelines for ensuring interoperability between web services. Both RPC/literal and Document/literal Wrapped styles are strictly WS-I compliant. The RPC/literal style represents method calls and responses using XML elements, while Document/literal Wrapped style uses XML elements to wrap the input and output parameters of a web service operation. These styles adhere to the WS-I standards and guidelines, ensuring compatibility and interoperability between different web services. The other styles mentioned, Document/encoded and RPC/encoded, are not strictly WS-I compliant.

    Rate this question:

  • 7. 

    The primary goal of this Web Service Design pattern is to move business logic out of the service implementation class and into distinct business objects that are more easily managed and evolved over time.

    • A.

      Asynchronous Query Pattern

    • B.

      Command Facade Pattern

    • C.

      Router Pattern

    • D.

      Message Bus Pattern

    • E.

      None of the above

    Correct Answer
    B. Command Facade Pattern
    Explanation
    The Command Facade Pattern is the correct answer because it focuses on separating the business logic from the service implementation class. By using distinct business objects, the pattern allows for better management and evolution of the business logic over time. This pattern helps in simplifying the complexity of the service implementation class by providing a simplified interface to access the business logic.

    Rate this question:

  • 8. 

    Which of the following statement(s) is/are true with respect to SOAP 1.2.?

    • A.

      SOAPAction HTTP header is optional in SOAP 1.2.

    • B.

      SOAP 1.2 permits partially transmitted and sparse arrays.

    • C.

      SOAPAction HTTP header is mandatory in SOAP 1.2.

    • D.

      SOAP 1.2 disallows partially transmitted and sparse arrays.

    • E.

      SOAP 1.2 adds a new standard header for reporting additional information in "MustUnderstand" faults.

    Correct Answer(s)
    A. SOAPAction HTTP header is optional in SOAP 1.2.
    D. SOAP 1.2 disallows partially transmitted and sparse arrays.
    E. SOAP 1.2 adds a new standard header for reporting additional information in "MustUnderstand" faults.
    Explanation
    The SOAPAction HTTP header is optional in SOAP 1.2. This means that it is not required to include this header in the SOAP message. SOAP 1.2 disallows partially transmitted and sparse arrays, which means that arrays must be transmitted in their entirety and cannot contain empty or missing elements. Additionally, SOAP 1.2 adds a new standard header for reporting additional information in "MustUnderstand" faults. This header provides a standardized way to communicate additional details about errors that occur when processing SOAP messages.

    Rate this question:

  • 9. 

    XML digital signatures provides

    • A.

      Authentication

    • B.

      Authorization

    • C.

      Confidentiality

    • D.

      Integrity

    • E.

      Non-repudiation

    Correct Answer
    D. Integrity
    Explanation
    XML digital signatures provide integrity by ensuring that the data within an XML document has not been tampered with or altered during transmission or storage. The digital signature uses cryptographic algorithms to create a unique hash value for the XML document, which is then encrypted using the sender's private key. This encrypted hash value is attached to the XML document, allowing the recipient to verify the integrity of the data by decrypting the hash value using the sender's public key and comparing it to a recalculated hash value of the received XML document. If the hash values match, it indicates that the XML document has not been modified and its integrity is preserved.

    Rate this question:

  • 10. 

    Which of the following statement(s) is/are false ?

    • A.

      '.asmx' is the ASP.NET file extension for XML Web Services.

    • B.

      With ASP.NET you have to write your own WSDL and SOAP documents.

    • C.

      Use "WebMethod" to mark the functions in your application that you would like to make into web services.

    • D.

      The namespace "System.Web.Services" is from the .NET framework.

    • E.

      Document/literal Wrapped style of WSDL originates from JAX-RPC provided by SUN Microsystems.

    Correct Answer(s)
    B. With ASP.NET you have to write your own WSDL and SOAP documents.
    E. Document/literal Wrapped style of WSDL originates from JAX-RPC provided by SUN Microsystems.
    Explanation
    The given correct answer states that "With ASP.NET you have to write your own WSDL and SOAP documents" is false. This means that in ASP.NET, you do not need to manually write WSDL and SOAP documents as they are automatically generated. Additionally, the answer states that "Document/literal Wrapped style of WSDL originates from JAX-RPC provided by SUN Microsystems" is false. This suggests that the Document/literal Wrapped style of WSDL does not originate from JAX-RPC but from another source.

    Rate this question:

  • 11. 

    Which of the following statement(s) is/are true?

    • A.

      JAXB 1.0 provided validation at marshal time.

    • B.

      JAXB 2.0 allows validation at unmarshal and marshal time.

    • C.

      JAXB 2.0 enabled on-demand validation on a JAXB content tree.

    • D.

      JAXB 1.0 provided validation at unmarshal time.

    • E.

      JAXB 1.0 enabled on-demand validation on a JAXB content tree.

    Correct Answer(s)
    B. JAXB 2.0 allows validation at unmarshal and marshal time.
    D. JAXB 1.0 provided validation at unmarshal time.
    E. JAXB 1.0 enabled on-demand validation on a JAXB content tree.
    Explanation
    JAXB 1.0 provided validation at unmarshal time, meaning that the validation of XML data against a schema occurred during the unmarshalling process. JAXB 2.0 expanded on this capability by allowing validation at both unmarshal and marshal time, meaning that the validation can also occur during the marshalling process. Additionally, JAXB 1.0 enabled on-demand validation on a JAXB content tree, allowing the validation to be triggered manually when needed.

    Rate this question:

  • 12. 

    Which of the following cannot be used as a Web Service Client?

    • A.

      Application Client

    • B.

      Dynamic Proxy

    • C.

      Static Stub

    • D.

      Direct Invocation Interface

    • E.

      Dynamic Invocation Interface

    Correct Answer
    D. Direct Invocation Interface
    Explanation
    A Direct Invocation Interface cannot be used as a Web Service Client because it does not have the necessary functionality to communicate with a web service. Direct invocation involves directly calling methods on an object, without any network communication. In contrast, a Web Service Client needs to be able to make remote procedure calls and interact with the web service over a network. Therefore, a Direct Invocation Interface is not suitable for this purpose.

    Rate this question:

  • 13. 

    Which of the following statement(s) is/are incorrect?

    • A.

      With JAX-WS, the developer generates/parses SOAP messages.

    • B.

      The JAX-WS runtime system converts the API calls and responses to and from SOAP messages.

    • C.

      A JAX-WS client cannot access a web service that is not running on the Java platform, and vice versa.

    • D.

      The starting point for developing a JAX-WS web service is a Java class annotated with the javax.jws.WebService annotation.

    • E.

      For a JAX-WS Endpoint: The implementing class should not explicitly reference an SEI through the endpointInterface element of the @WebService annotation.

    Correct Answer(s)
    A. With JAX-WS, the developer generates/parses SOAP messages.
    C. A JAX-WS client cannot access a web service that is not running on the Java platform, and vice versa.
    E. For a JAX-WS Endpoint: The implementing class should not explicitly reference an SEI through the endpointInterface element of the @WebService annotation.
    Explanation
    The statement "With JAX-WS, the developer generates/parses SOAP messages" is incorrect because with JAX-WS, the developer does not need to manually generate or parse SOAP messages. The JAX-WS runtime system takes care of converting the API calls and responses to and from SOAP messages.

    The statement "A JAX-WS client cannot access a web service that is not running on the Java platform, and vice versa" is incorrect. A JAX-WS client can access web services running on platforms other than Java, and a Java web service can be accessed by clients running on different platforms.

    The statement "For a JAX-WS Endpoint: The implementing class should not explicitly reference an SEI through the endpointInterface element of the @WebService annotation" is incorrect. In JAX-WS, the implementing class should explicitly reference a Service Endpoint Interface (SEI) through the endpointInterface element of the @WebService annotation.

    Rate this question:

  • 14. 

    Which of the following statement(s) is/are true with respect to WSDL?

    • A.

      The <types> element defines the data type that are used by the web service.

    • B.

      The <binding> element defines the message format and protocol details for each port.

    • C.

      The <types> element defines the data elements of an operation.

    • D.

      The <binding> element defines only the protocol details for each port.

    • E.

      The <message> element defines the data elements of an operation.

    Correct Answer(s)
    A. The <types> element defines the data type that are used by the web service.
    B. The <binding> element defines the message format and protocol details for each port.
    E. The <message> element defines the data elements of an operation.
    Explanation
    The element in WSDL defines the data types that are used by the web service. This includes the definition of complex types, simple types, and enumerations. The element, on the other hand, defines the message format and protocol details for each port. This includes specifying the encoding style, transport protocol, and other communication details. The element defines the data elements of an operation, including the input and output parameters.

    Rate this question:

  • 15. 

    In WSDL a <portType> refers to

    • A.

      TCP/IP or UDP port on the server

    • B.

      The operations that can be performed, and the messages that are involved

    • C.

      The actual protocol used in the Web Service

    • D.

      Only the operations that can be performed

    • E.

      Only the messages that are involved including their types and elements to be used

    Correct Answer
    B. The operations that can be performed, and the messages that are involved
    Explanation
    A in WSDL refers to the operations that can be performed and the messages that are involved. It defines the set of operations that a web service can support and the types of messages that can be exchanged between the client and the server. The element provides a high-level view of the functionality provided by the web service. It specifies the input and output messages for each operation, as well as any faults that can occur.

    Rate this question:

  • 16. 

    Which of the following is not an UDDI datatype?

    • A.

      BusinessEntity

    • B.

      BusinessService

    • C.

      BusinessTemplate

    • D.

      TModel

    • E.

      BindingTemplate

    Correct Answer
    C. BusinessTemplate
    Explanation
    The UDDI (Universal Description, Discovery, and Integration) specification defines various datatypes used in the UDDI registry. BusinessEntity, BusinessService, tModel, and BindingTemplate are all valid UDDI datatypes. However, BusinessTemplate is not a recognized UDDI datatype.

    Rate this question:

  • 17. 

    Pick the odd one out:

    • A.

      Service Simulator

    • B.

      Configuration Driven Service

    • C.

      Data Logger

    • D.

      Facade Service

    • E.

      Input/Output Validator

    Correct Answer
    D. Facade Service
    Explanation
    The odd one out in this list is "Facade Service." The other options, such as Service Simulator, Configuration Driven Service, Data Logger, and Input/Output Validator, all seem to be related to the concept of service or functionality within a system. However, a Facade Service is a design pattern that provides a simplified interface to a larger body of code, acting as a "facade" or intermediary between the client and the underlying system. Therefore, it stands out as a different type of concept compared to the other options.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 03, 2008
    Quiz Created by
    Dreamdude
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.