Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE) PDF Download

Web Services
Web Services, taking their name from the term for the individual applications that offer a remotely accessible service to client applications to form network applications. The two Web Services architectures are SOAPand REST discuss the technical meanings of those terms shortly.

The SOAP architecture’s approach to the problem is to make it feasible, at least in theory, to generate protocols that are customized to each network application—a kind of mass customization. The key elements of that approach are a framework for protocol specification, software toolkits for automatically generating protocol implementations from the specifications, and modular partial specifications that can be reused across protocols.

The REST architecture’s approach to the problem is to regard individual Web Services as WorldWide Web resources—identified by URIs and accessed via HTTP. Essentially, the REST architecture is just the web architecture. The web architecture’s strengths include stability and a demonstrated scalability (in the network-size sense). It could be considered a weakness that HTTP is not well suited to the usual procedural or operation-oriented style of invoking a remote service. REST advocates argue, however, that rich services can nonetheless be exposed using a more data-oriented or documentpassing style to which HTTP is well-suited.

Custom Application Protocols (WSDL, SOAP)
The architecture informally referred to as SOAP is based on Web Services Description Language (WSDL)and SOAP.2 Both of these standards are issued by the World Wide Web Consortium (W3C). This is the architecture that people usually mean when they use the term Web Services.WSDL and SOAP are frameworks for specifying and implementing application protocols and transport protocols, respectively. They are generally used together, although WSDL can be used to specify an application protocol that uses a transport protocol not specified using SOAP, and a SOAP-based protocol can transport a non-WSDL application protocol. WSDL is used to specify application-specific details suchas what operations are supported, the formats of the application data to invoke or respond to those operations, and whether an operation involves a response. SOAP’s role is to make it easy to define a transport protocol with exactly the desired semantics regarding protocol features such as reliability and security.

Defining Application Protocols

WSDL has chosen a procedural operation model of application protocols. An abstract web service interface consists of a set of named operations, each representing a simple interaction between a client and the web service. An operation is analogous to a remotely callable procedure in an RPC system. An example from W3C’s WSDL Primer is a hotel reservation web service with two operations, CheckAvailability and MakeReservation.

Defining Transport Protocols
Although SOAP is often called a protocol, it is better thought of as the foundation of a family of protocols, or a framework for defining protocols. As the SOAP 1.2 specification explains,“SOAP provides a simple messaging framework whose core functionality is concerned with providing extensibility.” SOAP uses many of the same strategies as WSDL, including message formats defined using XML Schema, bindings to underlying protocols, MEPs, and reusable specification elements identified using XML namespaces.

  • A URI that identifies the feature;
  • The state information and processing, abstractly described, that is required at each SOAP node to implement the feature;
  • The information to be relayed to the next node;
  • If the feature is a MEP, the life cycle and temporal/causal relationships of the messages exchanged (e.g., responses follow requests and are sent to the originator of the request).

Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE)

SOAP Message Structure

 

A Generic Application Protocol (REST)

 

The WSDL/SOAP Web Services architecture is based on the assumption that the best way to integrate applications across networks is via protocols that are customized to each application. That architecture is designed to make it practical to specify and implement all those protocols. In contrast, the REST Web Services architecture is based on the assumption that the best way to integrate applications across networks is by applying the model underlying the World Wide Web architecture (Section 9.1.2). This model, articulated by Web architect Roy Fielding, is known as REpresentational State Transfer(REST).

The document Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Networks.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
21 videos|113 docs|66 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Web Services: Application Layer - Computer Networks - Computer Science Engineering (CSE)

1. What is the application layer in web services?
Ans. The application layer in web services is the topmost layer of the system architecture that focuses on the communication between applications. It provides a way for different software applications to communicate and exchange data over the internet using protocols like HTTP, XML, or SOAP.
2. How are web services used at the application layer?
Ans. At the application layer, web services are used to enable interoperability between different software applications by providing a standardized way of communication. They allow applications to request and exchange data, invoke services, and perform various operations over the internet.
3. What are the key components of web services at the application layer?
Ans. The key components of web services at the application layer include: - Service Provider: The entity that provides the web service. - Service Requestor: The entity that consumes or uses the web service. - Service Registry: A directory or repository that keeps track of available web services. - Service Description: A document or file that describes the functionality and interface of the web service.
4. What are the advantages of using web services at the application layer?
Ans. Some advantages of using web services at the application layer are: - Interoperability: Web services enable communication between applications developed using different programming languages and platforms. - Reusability: Web services can be reused in multiple applications, reducing development time and effort. - Scalability: Web services can handle a large number of requests simultaneously, making them scalable for enterprise-level applications. - Loose Coupling: Web services are loosely coupled, meaning changes in one application do not affect the functionality of other applications. - Standardization: Web services follow standardized protocols and formats, making them easily adoptable and compatible with various systems.
5. How do web services ensure security at the application layer?
Ans. Web services ensure security at the application layer through various mechanisms such as: - Authentication: Web services use authentication mechanisms like usernames, passwords, or tokens to verify the identity of the service requestor. - Encryption: Data transmitted between applications can be encrypted using secure protocols like HTTPS to prevent unauthorized access. - Access Control: Web services implement access control mechanisms to restrict unauthorized access to certain functionalities or data. - Message Integrity: Techniques like digital signatures or message digests are used to ensure that messages exchanged between applications are not tampered with during transmission.
21 videos|113 docs|66 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Extra Questions

,

Previous Year Questions with Solutions

,

Objective type Questions

,

study material

,

Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE)

,

shortcuts and tricks

,

ppt

,

Summary

,

Semester Notes

,

Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE)

,

Web Services: Application Layer | Computer Networks - Computer Science Engineering (CSE)

,

past year papers

,

MCQs

,

practice quizzes

,

mock tests for examination

,

video lectures

,

pdf

,

Exam

,

Viva Questions

,

Important questions

,

Free

,

Sample Paper

;