SlideShare a Scribd company logo
Service Oriented Architecture: 27
REST and Restful Services
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharshi Dayanand Saraswati University Ajmer
Basic SOA Using REST
‱ The focus is “Implementing SOA components using the
REST paradigm”
‱ REST stands for Representational State Transfer. It was
first introduced by Roy Fielding1 in his 2000 doctoral
dissertation [Fielding].
‱ For simple applications, REST is an easy way to get
started
‱ Simple examples can be worked up, using only HTTP
and servlets, so that learners who are not advanced in
Java can come up the learning curve and get a sense of
the basics before working on the Java Web Services
(JWS) APIs.
What Is REST
‱ REST-style services (i.e., RESTful services) adhere to a set of
constraints and architectural principles that include the
following:
‱ ■ RESTful services are stateless. “Each request from client
to server must contain all the information necessary to
understand the request, and cannot take advantage of any
stored context on the server.”
‱ ■ RESTful services have a uniform interface. This constraint
is usually taken to mean that the only allowed operations
are the HTTP operations: GET, POST, PUT, and DELETE.
‱ ■ REST-based architectures are built from resources (pieces
of information) that are uniquely identified by URIs. For
example, in a RESTful purchasing system, each purchase
order has a unique URI.
What Is REST
‱ ■ REST components manipulate resources by exchanging
representations of the resources.
‱ Fielding writes that “REST-based architectures communicate
primarily through the transfer of representations of resources”
‱ This is fundamentally different from the Remote Procedure Call
(RPC) approach that encapsulates the notion of invoking a
procedure on the remote server.
‱ Hence, RPC messages typically contain information about the
procedure to be invoked or action to be taken. This information is
referred to as a verb in a Web service request. In the REST model,
the only verbs allowed are GET, POST, PUT, and DELETE.
‱ In the RPC approach, typically many operations are invoked at the
same URI. This is to be contrasted with the REST approach of having
a unique URI for each resource.
RESTful Web Services versus SOAP
Web Services
‱ REST uses simple XML over HTTP without a
WSDL interface definition.
‱ XML Schema could be used as an interface
definition for RESTful Services
‱ services.
SOA-style development for the
Enterprise Information System (EIS)
‱ Structuring EIS Records as XML documents
‱ ■ Getting EIS records from a REST service (with and without
JWS)
‱ ■ Posting EIS records to a REST service (with and without
JWS)
‱ ■ Basic SOA-style integration of REST services using XSLT for
data transformation
‱ ■ Deploying a REST service to be used for getting EIS
records—in other words, an HTTP GET service (with and
without JWS)
‱ ■ Deploying a REST service to be used for posting EIS
records—in other words, an HTTP POST service (with and
without JWS)
XML Documents and Schema for EIS
Records
‱ The first step toward implementing an SOA component that
consumes or provides EIS records involves formatting the EIS
records that need to be exchanged as XML documents.
‱ This process is formalized by creating an XML Schema to represent
the structure of an XML document for a particular EIS record.
‱ XYZ Corporation has an Order Management System (OMS) that
needs to be integrated with a Customer Service System (CSS).
‱ The OMS should be thought of as an EIS, such as SAP, for taking
customer orders and tracking them through delivery.
‱ The CSS should be thought of as an EIS, such as Oracle’s Siebel
Customer Relationship Management Applications, that is used by
customer service employees as a tool for handling customer
inquiries.
OMS order record as it appears in the
user interface
An XML Representation of the Order
A Fragment of the XML Schema for
Validating an Order Document
Soa 27 rest and restful services
Assignment
‱ Explain the usage and benefits of Restful
Services for implementing SOA

More Related Content

PPTX
An Overview of Web Services: SOAP and REST
PPTX
Rest Best Practices
PPT
Soap Vs Rest
PDF
Understanding SOAP and REST basics and differences
PPTX
Rest webservice ppt
PPTX
Rest api design
PPTX
Group meeting may 16 2013
 
PDF
Rest in flask
An Overview of Web Services: SOAP and REST
Rest Best Practices
Soap Vs Rest
Understanding SOAP and REST basics and differences
Rest webservice ppt
Rest api design
Group meeting may 16 2013
 
Rest in flask

What's hot (16)

PPTX
JEE session 1
PPTX
Signal rity1
PPTX
Advance java session 2
PPTX
Overview of REST - Raihan Ullah
 
PPTX
Learn REST API at ASIT
 
PPTX
PDF
Đ’Đ»Đ°ĐŽĐžĐŒĐžŃ€ Đ›ĐŸĐłĐČĐžĐœĐŸĐČ - Rest-Assured - лДгĐșĐžĐč ŃĐżĐŸŃĐŸĐ± аĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·Đ°Ń†ĐžĐž Ń‚Đ”ŃŃ‚ĐžŃ€ĐŸĐČĐ°ĐœĐžŃ REST
PPTX
Web services automation from sketch
PPTX
Using the Cascade Server Web Service API, by Artur Tomusiak
PPTX
Python wsgi protocol
PDF
Web Services
PPTX
Intro to FileCatalyst Direct v3.7
PPT
sell idea
PPTX
Webservices divya
PPTX
Webservices divya 1
PPTX
A Complete BI Solution in About an Hour!
JEE session 1
Signal rity1
Advance java session 2
Overview of REST - Raihan Ullah
 
Learn REST API at ASIT
 
Đ’Đ»Đ°ĐŽĐžĐŒĐžŃ€ Đ›ĐŸĐłĐČĐžĐœĐŸĐČ - Rest-Assured - лДгĐșĐžĐč ŃĐżĐŸŃĐŸĐ± аĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·Đ°Ń†ĐžĐž Ń‚Đ”ŃŃ‚ĐžŃ€ĐŸĐČĐ°ĐœĐžŃ REST
Web services automation from sketch
Using the Cascade Server Web Service API, by Artur Tomusiak
Python wsgi protocol
Web Services
Intro to FileCatalyst Direct v3.7
sell idea
Webservices divya
Webservices divya 1
A Complete BI Solution in About an Hour!
Ad

Similar to Soa 27 rest and restful services (20)

PPTX
Unit 2
PDF
Secc tutorials development and deployment of rest web services in java_v2.0
PPT
REST Introduction.ppt
PDF
RESTful API by abubakar
PDF
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
PPTX
Introduction To REST
PDF
Res tful web services oracle
 
PDF
A Study Of Web Services And Its Implications
PDF
Understanding REST-Based Services: Simple, Scalable, and Platform Independent
PPTX
Introduction to webservices
PDF
Enterprise REST
PDF
Application.pdf
PDF
Differentiating between web APIs, SOA, & integration 
and why it matters
PPT
Modified REST Presentation
PPTX
REST & SOAP.pptx
PPTX
cloud enabling tecnologies , unit ii [cc]
PPTX
RESTful Web Services
PPT
Introduction to REST
PDF
RESTful applications: The why and how by Maikel Mardjan
 
PPT
ROA.ppt
Unit 2
Secc tutorials development and deployment of rest web services in java_v2.0
REST Introduction.ppt
RESTful API by abubakar
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
Introduction To REST
Res tful web services oracle
 
A Study Of Web Services And Its Implications
Understanding REST-Based Services: Simple, Scalable, and Platform Independent
Introduction to webservices
Enterprise REST
Application.pdf
Differentiating between web APIs, SOA, & integration 
and why it matters
Modified REST Presentation
REST & SOAP.pptx
cloud enabling tecnologies , unit ii [cc]
RESTful Web Services
Introduction to REST
RESTful applications: The why and how by Maikel Mardjan
 
ROA.ppt
Ad

More from Vaibhav Khanna (20)

PPTX
Information and network security 47 authentication applications
PPTX
Information and network security 46 digital signature algorithm
PPTX
Information and network security 45 digital signature standard
PPTX
Information and network security 44 direct digital signatures
PPTX
Information and network security 43 digital signatures
PPTX
Information and network security 42 security of message authentication code
PPTX
Information and network security 41 message authentication code
PPTX
Information and network security 40 sha3 secure hash algorithm
PPTX
Information and network security 39 secure hash algorithm
PPTX
Information and network security 38 birthday attacks and security of hash fun...
PPTX
Information and network security 37 hash functions and message authentication
PPTX
Information and network security 35 the chinese remainder theorem
PPTX
Information and network security 34 primality
PPTX
Information and network security 33 rsa algorithm
PPTX
Information and network security 32 principles of public key cryptosystems
PPTX
Information and network security 31 public key cryptography
PPTX
Information and network security 30 random numbers
PPTX
Information and network security 29 international data encryption algorithm
PPTX
Information and network security 28 blowfish
PPTX
Information and network security 27 triple des
Information and network security 47 authentication applications
Information and network security 46 digital signature algorithm
Information and network security 45 digital signature standard
Information and network security 44 direct digital signatures
Information and network security 43 digital signatures
Information and network security 42 security of message authentication code
Information and network security 41 message authentication code
Information and network security 40 sha3 secure hash algorithm
Information and network security 39 secure hash algorithm
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 37 hash functions and message authentication
Information and network security 35 the chinese remainder theorem
Information and network security 34 primality
Information and network security 33 rsa algorithm
Information and network security 32 principles of public key cryptosystems
Information and network security 31 public key cryptography
Information and network security 30 random numbers
Information and network security 29 international data encryption algorithm
Information and network security 28 blowfish
Information and network security 27 triple des

Recently uploaded (20)

PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
history of c programming in notes for students .pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
AI in Product Development-omnex systems
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
ai tools demonstartion for schools and inter college
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Illustrator 28.6 Crack My Vision of Vector Design
history of c programming in notes for students .pptx
How Creative Agencies Leverage Project Management Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Softaken Excel to vCard Converter Software.pdf
AI in Product Development-omnex systems
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
ManageIQ - Sprint 268 Review - Slide Deck
Upgrade and Innovation Strategies for SAP ERP Customers
Wondershare Filmora 15 Crack With Activation Key [2025
Navsoft: AI-Powered Business Solutions & Custom Software Development
ai tools demonstartion for schools and inter college
Odoo POS Development Services by CandidRoot Solutions
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Understanding Forklifts - TECH EHS Solution
VVF-Customer-Presentation2025-Ver1.9.pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Online Work Permit System for Fast Permit Processing
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

Soa 27 rest and restful services

  • 1. Service Oriented Architecture: 27 REST and Restful Services Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharshi Dayanand Saraswati University Ajmer
  • 2. Basic SOA Using REST ‱ The focus is “Implementing SOA components using the REST paradigm” ‱ REST stands for Representational State Transfer. It was first introduced by Roy Fielding1 in his 2000 doctoral dissertation [Fielding]. ‱ For simple applications, REST is an easy way to get started ‱ Simple examples can be worked up, using only HTTP and servlets, so that learners who are not advanced in Java can come up the learning curve and get a sense of the basics before working on the Java Web Services (JWS) APIs.
  • 3. What Is REST ‱ REST-style services (i.e., RESTful services) adhere to a set of constraints and architectural principles that include the following: ‱ ■ RESTful services are stateless. “Each request from client to server must contain all the information necessary to understand the request, and cannot take advantage of any stored context on the server.” ‱ ■ RESTful services have a uniform interface. This constraint is usually taken to mean that the only allowed operations are the HTTP operations: GET, POST, PUT, and DELETE. ‱ ■ REST-based architectures are built from resources (pieces of information) that are uniquely identified by URIs. For example, in a RESTful purchasing system, each purchase order has a unique URI.
  • 4. What Is REST ‱ ■ REST components manipulate resources by exchanging representations of the resources. ‱ Fielding writes that “REST-based architectures communicate primarily through the transfer of representations of resources” ‱ This is fundamentally different from the Remote Procedure Call (RPC) approach that encapsulates the notion of invoking a procedure on the remote server. ‱ Hence, RPC messages typically contain information about the procedure to be invoked or action to be taken. This information is referred to as a verb in a Web service request. In the REST model, the only verbs allowed are GET, POST, PUT, and DELETE. ‱ In the RPC approach, typically many operations are invoked at the same URI. This is to be contrasted with the REST approach of having a unique URI for each resource.
  • 5. RESTful Web Services versus SOAP Web Services ‱ REST uses simple XML over HTTP without a WSDL interface definition. ‱ XML Schema could be used as an interface definition for RESTful Services ‱ services.
  • 6. SOA-style development for the Enterprise Information System (EIS) ‱ Structuring EIS Records as XML documents ‱ ■ Getting EIS records from a REST service (with and without JWS) ‱ ■ Posting EIS records to a REST service (with and without JWS) ‱ ■ Basic SOA-style integration of REST services using XSLT for data transformation ‱ ■ Deploying a REST service to be used for getting EIS records—in other words, an HTTP GET service (with and without JWS) ‱ ■ Deploying a REST service to be used for posting EIS records—in other words, an HTTP POST service (with and without JWS)
  • 7. XML Documents and Schema for EIS Records ‱ The first step toward implementing an SOA component that consumes or provides EIS records involves formatting the EIS records that need to be exchanged as XML documents. ‱ This process is formalized by creating an XML Schema to represent the structure of an XML document for a particular EIS record. ‱ XYZ Corporation has an Order Management System (OMS) that needs to be integrated with a Customer Service System (CSS). ‱ The OMS should be thought of as an EIS, such as SAP, for taking customer orders and tracking them through delivery. ‱ The CSS should be thought of as an EIS, such as Oracle’s Siebel Customer Relationship Management Applications, that is used by customer service employees as a tool for handling customer inquiries.
  • 8. OMS order record as it appears in the user interface
  • 9. An XML Representation of the Order
  • 10. A Fragment of the XML Schema for Validating an Order Document
  • 12. Assignment ‱ Explain the usage and benefits of Restful Services for implementing SOA