SlideShare a Scribd company logo
Web services
unit -4 spring web services like SOA Arch
SOA-Service Oriented Architecture
SOA expands to Service Oriented Architecture, is a
software model designed for achieving
communication among distributed application
components, irrespective of the differences in terms
of technology, platform, etc.,
contd
Service-Oriented Architecture (SOA) is a design approach and architectural style
used in software development to create flexible and scalable systems by organizing
software components (services) into loosely coupled, reusable, and interoperable
units. These services can be thought of as self-contained, modular units that
provide specific functionality and can communicate with each other over a
network.
Key concepts and principles of SOA include:
• Services: These are the fundamental building blocks of an SOA. Services are self-
contained, independent units of functionality that can be accessed over a network
through standard protocols, such as HTTP, SOAP, or REST. Services are designed to
perform specific tasks or functions and can be reused in different applications.
• Loose Coupling: In SOA, services are loosely coupled, meaning they are
independent of one another and can evolve separately without affecting other
services. This allows for greater flexibility and adaptability in the system.
• Interoperability: SOA promotes the use of standardized communication protocols
and data formats to ensure that services can work together, regardless of the
technologies or platforms on which they are implemented. This facilitates
integration between heterogeneous systems.
unit -4 spring web services like SOA Arch
What are Web services
Web services are a technology that enables
communication and data exchange between
different software applications over the internet or a
network. They provide a standardized way for
applications, regardless of the programming
languages, platforms, or technologies they are built
with, to interact with one another. Web services are
based on open standards and protocols, making
them highly interoperable.
unit -4 spring web services like SOA Arch
Types of Web Services
There are mainly two types of web services.
• Simple Object Access Protocol (SOAP) web
services.
• Representational State Transfer(REST)
services.
SOAP
• SOAP is an acronym for Simple Object Access
Protocol.
• SOAP is a XML-based protocol for accessing web
services.
• SOAP is a W3C recommendation for communication
between applications.
• It is important for web applications to be able to
communicate over the Internet.
• The best way to communicate between applications
is over HTTP, because HTTP is supported by all
Internet browsers and servers. SOAP was created to
accomplish this.
• SOAP provides a way to communicate between
applications running on different operating systems,
with different technologies and programming
languages.
SOAP Building Blocks
A SOAP message is an ordinary XML document
containing the following elements:
• An Envelope element that identifies the XML
document as a SOAP message
• A Header element that contains header
information
• A Body element that contains call and response
information
• A Fault element containing errors and status
information
SOAP Message Format
SOAP Syntax
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
REST
REST is an acronym that stands for REpresentational
State Transfer. It was created by Roy Thomas Fielding,
who also created HTTP. The primary purpose of
RESTful web services is to improve the efficiency of
online services. RESTful web services attempt to
describe services by utilizing the many principles
currently existing in HTTP. REST is a design approach,
not a protocol.
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
contd
• The standard message exchange format is not defined. REST
services may be built using both XML and JSON. With REST,
JSON is the more prevalent format. In REST, the key
abstraction is a resource. Anything can be considered a
resource.
• The resource is available in XML, HTML, and JSON formats. A
representational resource captures the current state. When
we request a resource, we supply the resource's
representation. HTTP's most significant methods are:
• POST: This method generates a new resource.
• DELETE: This command deletes the resource.
• GET: This command reads a resource.
• PUT: It is used to update an existing resource.
status codes
• HTTP specifies the following standard status
codes as well:
• 401: UNAUTHORISED
• 500: SERVER ERROR
• 404: RESOURCE NOT FOUND
• 200: SUCCESS
• 201: CREATED
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
For example
• If we conduct the following steps in the social media
application, we will receive the following outcomes.
• POST /users: This method creates a user.
• GET /users/{id}: Retrieves information about a single user.
• GET /users: It retrieves all users' information.
• DELETE/users: It removes all users.
• DELETE /users/{id}: This command deletes a user.
• GET /users/{id}/posts/id post_id: It retrieves information
about a certain post.
• POST/users/{id}/ posts: This method produces a post for a
certain user.
• GET /users/{id}/post: Retrieve all posts for a certain user.
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
Ad

More Related Content

Similar to unit -4 spring web services like SOA Arch (20)

Web Programming
Web ProgrammingWeb Programming
Web Programming
VijayapriyaP1
 
WIT UNIT-5.pdf
WIT UNIT-5.pdfWIT UNIT-5.pdf
WIT UNIT-5.pdf
jashmithakakavakam
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
Gagandeep Singh
 
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdfwsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
Unit 2
Unit 2Unit 2
Unit 2
Ravi Kumar
 
Web services
Web servicesWeb services
Web services
Akshay Ballarpure
 
Service view
Service viewService view
Service view
Pooja Dixit
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
Aravindharamanan S
 
Simple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptxSimple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptx
ShohedulIslam3
 
Web Service Testing By Sheshadri Mishra
Web Service Testing By Sheshadri MishraWeb Service Testing By Sheshadri Mishra
Web Service Testing By Sheshadri Mishra
Sheshadri Mishra
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
Ponraj
 
Cc unit 2 updated
Cc unit 2 updatedCc unit 2 updated
Cc unit 2 updated
Dr. Radhey Shyam
 
CS-802 Act-1.ppt
CS-802 Act-1.pptCS-802 Act-1.ppt
CS-802 Act-1.ppt
AnushkaChauhan68
 
Web service implementation
Web service implementationWeb service implementation
Web service implementation
Yatindra Sahu
 
web programming
web programmingweb programming
web programming
shreeuva
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
Sreeni I
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
Madhukar Kumar
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
snegacmr
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
Signer.Digital
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
Gagandeep Singh
 
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdfwsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
Aravindharamanan S
 
Simple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptxSimple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptx
ShohedulIslam3
 
Web Service Testing By Sheshadri Mishra
Web Service Testing By Sheshadri MishraWeb Service Testing By Sheshadri Mishra
Web Service Testing By Sheshadri Mishra
Sheshadri Mishra
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
Ponraj
 
Web service implementation
Web service implementationWeb service implementation
Web service implementation
Yatindra Sahu
 
web programming
web programmingweb programming
web programming
shreeuva
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
Sreeni I
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
Madhukar Kumar
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
snegacmr
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
Signer.Digital
 

Recently uploaded (20)

Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Uses of drones in civil construction.pdf
Uses of drones in civil construction.pdfUses of drones in civil construction.pdf
Uses of drones in civil construction.pdf
surajsen1729
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Nanometer Metal-Organic-Framework Literature Comparison
Nanometer Metal-Organic-Framework  Literature ComparisonNanometer Metal-Organic-Framework  Literature Comparison
Nanometer Metal-Organic-Framework Literature Comparison
Chris Harding
 
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Journal of Soft Computing in Civil Engineering
 
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
JRR Tolkien’s Lord of the Rings: Was It Influenced by Nordic Mythology, Homer...
Reflections on Morality, Philosophy, and History
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
twin tower attack 2001 new york city
twin  tower  attack  2001 new  york citytwin  tower  attack  2001 new  york city
twin tower attack 2001 new york city
harishreemavs
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
AI Publications
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Uses of drones in civil construction.pdf
Uses of drones in civil construction.pdfUses of drones in civil construction.pdf
Uses of drones in civil construction.pdf
surajsen1729
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Nanometer Metal-Organic-Framework Literature Comparison
Nanometer Metal-Organic-Framework  Literature ComparisonNanometer Metal-Organic-Framework  Literature Comparison
Nanometer Metal-Organic-Framework Literature Comparison
Chris Harding
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
twin tower attack 2001 new york city
twin  tower  attack  2001 new  york citytwin  tower  attack  2001 new  york city
twin tower attack 2001 new york city
harishreemavs
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
AI Publications
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Ad

unit -4 spring web services like SOA Arch

  • 3. SOA-Service Oriented Architecture SOA expands to Service Oriented Architecture, is a software model designed for achieving communication among distributed application components, irrespective of the differences in terms of technology, platform, etc.,
  • 4. contd Service-Oriented Architecture (SOA) is a design approach and architectural style used in software development to create flexible and scalable systems by organizing software components (services) into loosely coupled, reusable, and interoperable units. These services can be thought of as self-contained, modular units that provide specific functionality and can communicate with each other over a network. Key concepts and principles of SOA include: • Services: These are the fundamental building blocks of an SOA. Services are self- contained, independent units of functionality that can be accessed over a network through standard protocols, such as HTTP, SOAP, or REST. Services are designed to perform specific tasks or functions and can be reused in different applications. • Loose Coupling: In SOA, services are loosely coupled, meaning they are independent of one another and can evolve separately without affecting other services. This allows for greater flexibility and adaptability in the system. • Interoperability: SOA promotes the use of standardized communication protocols and data formats to ensure that services can work together, regardless of the technologies or platforms on which they are implemented. This facilitates integration between heterogeneous systems.
  • 6. What are Web services Web services are a technology that enables communication and data exchange between different software applications over the internet or a network. They provide a standardized way for applications, regardless of the programming languages, platforms, or technologies they are built with, to interact with one another. Web services are based on open standards and protocols, making them highly interoperable.
  • 8. Types of Web Services There are mainly two types of web services. • Simple Object Access Protocol (SOAP) web services. • Representational State Transfer(REST) services.
  • 9. SOAP • SOAP is an acronym for Simple Object Access Protocol. • SOAP is a XML-based protocol for accessing web services. • SOAP is a W3C recommendation for communication between applications.
  • 10. • It is important for web applications to be able to communicate over the Internet. • The best way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this. • SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
  • 11. SOAP Building Blocks A SOAP message is an ordinary XML document containing the following elements: • An Envelope element that identifies the XML document as a SOAP message • A Header element that contains header information • A Body element that contains call and response information • A Fault element containing errors and status information
  • 21. REST REST is an acronym that stands for REpresentational State Transfer. It was created by Roy Thomas Fielding, who also created HTTP. The primary purpose of RESTful web services is to improve the efficiency of online services. RESTful web services attempt to describe services by utilizing the many principles currently existing in HTTP. REST is a design approach, not a protocol.
  • 26. contd • The standard message exchange format is not defined. REST services may be built using both XML and JSON. With REST, JSON is the more prevalent format. In REST, the key abstraction is a resource. Anything can be considered a resource. • The resource is available in XML, HTML, and JSON formats. A representational resource captures the current state. When we request a resource, we supply the resource's representation. HTTP's most significant methods are: • POST: This method generates a new resource. • DELETE: This command deletes the resource. • GET: This command reads a resource. • PUT: It is used to update an existing resource.
  • 27. status codes • HTTP specifies the following standard status codes as well: • 401: UNAUTHORISED • 500: SERVER ERROR • 404: RESOURCE NOT FOUND • 200: SUCCESS • 201: CREATED
  • 33. For example • If we conduct the following steps in the social media application, we will receive the following outcomes. • POST /users: This method creates a user. • GET /users/{id}: Retrieves information about a single user. • GET /users: It retrieves all users' information. • DELETE/users: It removes all users. • DELETE /users/{id}: This command deletes a user. • GET /users/{id}/posts/id post_id: It retrieves information about a certain post. • POST/users/{id}/ posts: This method produces a post for a certain user. • GET /users/{id}/post: Retrieve all posts for a certain user.
  翻译: