Web Service Architecture Quiz
8 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What are the three components of web service architecture?

  • Service provider (correct)
  • Service requester (correct)
  • Service registry (correct)
  • What does SOAP stand for?

    Simple Object Access Protocol

    SOAP is based on message exchanges.

    True

    Web Service Description Language is an XML-based interface definition language used to describe ________ supported by the web service.

    <p>methods</p> Signup and view all the answers

    What are the 3 standard roles defined in SOAP for message processing?

    <p>next</p> Signup and view all the answers

    If a block in SOAP doesn't have a role associated with it, it defaults to next.

    <p>False</p> Signup and view all the answers

    If a mustUnderstand flag is included, a node that matches the specified role must process that part of the message, otherwise it must generate a _________ and not forward the message any further.

    <p>fault</p> Signup and view all the answers

    What is the purpose of the relay attribute in SOAP 1.2?

    <p>forwarding the message</p> Signup and view all the answers

    Study Notes

    Web Service Architecture

    • A web service consists of three components: service requester, service provider, and service registry.
    • Basic infrastructure to implement a web service includes:
      • A way to communicate (SOAP - Simple Object Access Protocol).
      • A way to describe the service (WSDL - Web Service Description Language).
      • A name and directory service (UDDI - Universal Description, Discovery, and Integration).

    Minimalist Infrastructure for Web Services

    • A common syntax is needed for all specifications, provided by XML.
    • There must be a mechanism for remote sites to interact, including:
      • Common data format for messaging.
      • Convention for interactions (messaging or RPC).
      • Bindings for mapping messages into a transport protocol.

    SOAP (Simple Object Access Protocol)

    • SOAP was initiated by W3C in 1999 and is used for message exchanges.
    • SOAP covers four main areas:
      • Message format for one-way communication.
      • Description of how to transport the message through the web or email.
      • Rules for processing a SOAP message.
      • Conventions for turning an RPC call into a SOAP message and back.

    SOAP Structure

    • A SOAP message consists of an envelope, header, and body.
    • The header and body are divided into blocks.
    • The header is optional and the body is mandatory.
    • The header is for infrastructure-level data, and the body is for application-level data.

    SOAP Interaction Styles

    • Document-style interaction.
    • RPC-style interaction.

    SOAP Fault Element

    • In SOAP 1.1, the fault element has four elements: fault code, fault string, fault actor, and detail.
    • In SOAP 1.2, the fault element has two mandatory sub-elements: Code and Reason, and may contain Node, Role, and Detail elements.

    Message Processing

    • SOAP specifies how messages must be processed, including how header entries must be processed.
    • Each SOAP node looks at the role associated with each part of the message.
    • Roles can be none, next, or ultimateReceiver.
    • The mustUnderstand attribute determines whether it is mandatory to process the header.

    Mapping SOAP to a Transport Protocol

    • SOAP can be mapped to a transport protocol such as HTTP.
    • HTTP is a communication protocol used for exchanging documents.

    HTTP as a Communication Protocol

    • HTTP is used for exchanging documents and is almost like email.
    • Request methods include GET, POST, PUT, and DELETE.
    • The server is expected to convert the data into a MIME type specified in the request.

    SOAP and HTTP

    • A binding of SOAP to a transport protocol is a description of how a SOAP message is to be sent using that protocol.

    • The typical binding for SOAP is HTTP.

    • SOAP can use GET or POST, but POST is typically used.### SOAP Basics

    • SOAP provides mechanisms for encapsulating messages into an XML document.

    • It maps the XML document to a SOAP message and turns it into an HTTP request.

    • SOAP transforms RPC calls into SOAP messages.

    • It has simple rules on how to process a SOAP message (which became more precise and comprehensive in v1.2 of the specification).

    SOAP and XML

    • SOAP takes advantage of XML standards to resolve data representation and serialization problems.
    • It uses XML Schema to represent data and data structures.
    • It relies on XML for serializing data for transfer.
    • SOAP can take advantage of new XML standards by indicating what schema and encoding is used as part of the SOAP message.

    SOAP Characteristics

    • SOAP is a simple protocol intended for transferring data from one middleware platform to another.
    • Current specifications are tied to RPC and HTTP.
    • Despite its claims to be open, SOAP is designed to be platform-independent.

    SOAP Message Structure

    • A SOAP message consists of a SOAP Envelope.
    • The SOAP Envelope contains a SOAP header and a SOAP Body.
    • The SOAP header includes a Transactional context.
    • The SOAP Body contains the Name of Procedure and Input parameters.
    • The SOAP Body can also contain a Return parameter.

    SOAP Communication

    • SOAP communication involves a SERVICE REQUESTER and a SERVICE PROVIDER.
    • The SERVICE REQUESTER sends an HTTP POST request to the SERVICE PROVIDER.
    • The SERVICE PROVIDER responds with an HTTP Acknowledgement and a SOAP Envelope.
    • The SOAP Envelope contains the result of the Procedure.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Test your understanding of web service architecture, its components, and infrastructure, including SOAP and WSDL. This quiz is designed for computer science students and professionals.

    More Like This

    Use Quizgecko on...
    Browser
    Browser