SlideShare une entreprise Scribd logo
1  sur  15
WEB SERVICES
THEORY & IMPLEMENTATION
Abdul Munim Dibosh (abdulmunim.buet@gmail.com)
CSE, BUET
What’s Web Service
• Application components
• Communicate using open protocols
• Self contained and self describing
• Can be consumed by any application
How does it work
• Internet protocol used : HTTP
• Platform Elements:
SOAP(Simple Object Access Protocol)
UDDI(Universal Description, Discovery & Integration)
WSDL(Web Services Description Language)
Why Web Service
• Interoperability – Web services enable exchanging data
between different applications and platforms.
• Can publish function or message to rest of the world
• Reusable application components
Popular Web Services
SOAP
• Simple Object Access Protocol
• Communication protocol
• Format for sending messages
• Platform independent
• Based on XML
• Allows to get around firewalls
WSDL
• Web Services Description Language
• Based on XML
• Used to describe web services
• Used to locate web services
I have something new…
Introducing REST
• REST stands for Representational State Transfer
• Large impact ; almost displaced SOAP and WSDL
RESTful Web Services
• Unique URL is representation of some object
• Uses HTTP for CRUD(Create/Read/Update/Delete)
operations
REST vs SOAP
• Rest
• Light-Weight
• Human readable
• Easy to build
• Access named resources through a single consistent interface
• Permits different data formats
• Example: getUser(Id)
• Soap
• Easy to consume-sometimes
• Rigid-adheres to a contract (Standard Specification)
• Exposes operations
• Permits XML
• Example: performTask(Id,task)
The main idea
• REST – Exposes a resource(object) via GET,POST etc.
What you will do with that object is up to you.
• SOAP - Exposes named operations to perform business
logic.
Example-SOAP
• Query the details of a given User-
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-en coding">
<soap:body pb="http://www.acme.com/phonebook"> <pb:GetUserDetails>
<pb:UserID>12345</pb:UserID> </pb:GetUserDetails>
</soap:Body> </soap:Envelope>
Example-REST
• Query the details of a given User-
http://www.acme.com/phonebook/UserDetails/12345
Enough talk, let's fight
code…

Contenu connexe

Tendances

Windows communication foundation (part2) jaliya udagedara
Windows communication foundation (part2) jaliya udagedaraWindows communication foundation (part2) jaliya udagedara
Windows communication foundation (part2) jaliya udagedara
Jaliya Udagedara
 
Web services in j2 ee
Web services in j2 eeWeb services in j2 ee
Web services in j2 ee
Naresh Chinnu
 

Tendances (20)

Windows communication foundation (part2) jaliya udagedara
Windows communication foundation (part2) jaliya udagedaraWindows communication foundation (part2) jaliya udagedara
Windows communication foundation (part2) jaliya udagedara
 
Soa 8 soa technologies for web services
Soa 8 soa technologies for web servicesSoa 8 soa technologies for web services
Soa 8 soa technologies for web services
 
Web services
Web servicesWeb services
Web services
 
SOAP vs REST
SOAP vs RESTSOAP vs REST
SOAP vs REST
 
Web services
Web servicesWeb services
Web services
 
WSDL Services
WSDL ServicesWSDL Services
WSDL Services
 
WebServices
WebServicesWebServices
WebServices
 
Web services for banks
Web services for banksWeb services for banks
Web services for banks
 
An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST
 
Web services
Web servicesWeb services
Web services
 
Web service
Web serviceWeb service
Web service
 
Understanding Web services
Understanding Web servicesUnderstanding Web services
Understanding Web services
 
Web services automation from sketch
Web services automation from sketchWeb services automation from sketch
Web services automation from sketch
 
SOA standards
SOA standardsSOA standards
SOA standards
 
Web Services
Web ServicesWeb Services
Web Services
 
Multi-Process JavaScript Architectures
Multi-Process JavaScript ArchitecturesMulti-Process JavaScript Architectures
Multi-Process JavaScript Architectures
 
Introduction to web services
Introduction to web servicesIntroduction to web services
Introduction to web services
 
Web services in j2 ee
Web services in j2 eeWeb services in j2 ee
Web services in j2 ee
 
Developing and Hosting SOAP Based Services
Developing and Hosting SOAP Based ServicesDeveloping and Hosting SOAP Based Services
Developing and Hosting SOAP Based Services
 
Web services
Web services Web services
Web services
 

Similaire à REST -Web services

Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8
Woodruff Solutions LLC
 

Similaire à REST -Web services (20)

Wt unit 6 ppts web services
Wt unit 6 ppts web servicesWt unit 6 ppts web services
Wt unit 6 ppts web services
 
Week2 cloud computing week2
Week2 cloud computing week2Week2 cloud computing week2
Week2 cloud computing week2
 
nptl cc video.pptx
nptl cc video.pptxnptl cc video.pptx
nptl cc video.pptx
 
Web service
Web serviceWeb service
Web service
 
Application.pdf
Application.pdfApplication.pdf
Application.pdf
 
API.pdf
API.pdfAPI.pdf
API.pdf
 
Web services
Web servicesWeb services
Web services
 
Java Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web ServicesJava Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web Services
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
 
CS-802 Act-1.ppt
CS-802 Act-1.pptCS-802 Act-1.ppt
CS-802 Act-1.ppt
 
Context And Concept Of Web Services
Context And Concept Of Web ServicesContext And Concept Of Web Services
Context And Concept Of Web Services
 
Displaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptxDisplaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptx
 
Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
What is the difference between an api and web services
What is the difference between an api and web servicesWhat is the difference between an api and web services
What is the difference between an api and web services
 
Web services
Web servicesWeb services
Web services
 
Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8Connecting to Data from Windows Phone 8
Connecting to Data from Windows Phone 8
 
Web Service
Web ServiceWeb Service
Web Service
 
Webservices
WebservicesWebservices
Webservices
 

Plus de bsadd

Server deployment
Server deploymentServer deployment
Server deployment
bsadd
 
BSADD-Git-TRAINING
BSADD-Git-TRAININGBSADD-Git-TRAINING
BSADD-Git-TRAINING
bsadd
 
Bsadd Project Idea & Platform
Bsadd Project Idea & PlatformBsadd Project Idea & Platform
Bsadd Project Idea & Platform
bsadd
 
Introducing Systems Analysis Design Development
Introducing Systems Analysis Design DevelopmentIntroducing Systems Analysis Design Development
Introducing Systems Analysis Design Development
bsadd
 

Plus de bsadd (6)

Server deployment
Server deploymentServer deployment
Server deployment
 
BSADD-Git-TRAINING
BSADD-Git-TRAININGBSADD-Git-TRAINING
BSADD-Git-TRAINING
 
Bsadd Project Idea & Platform
Bsadd Project Idea & PlatformBsadd Project Idea & Platform
Bsadd Project Idea & Platform
 
Session On Mockups
Session On MockupsSession On Mockups
Session On Mockups
 
Hello Git
Hello GitHello Git
Hello Git
 
Introducing Systems Analysis Design Development
Introducing Systems Analysis Design DevelopmentIntroducing Systems Analysis Design Development
Introducing Systems Analysis Design Development
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

REST -Web services

  • 1. WEB SERVICES THEORY & IMPLEMENTATION Abdul Munim Dibosh (abdulmunim.buet@gmail.com) CSE, BUET
  • 2. What’s Web Service • Application components • Communicate using open protocols • Self contained and self describing • Can be consumed by any application
  • 3. How does it work • Internet protocol used : HTTP • Platform Elements: SOAP(Simple Object Access Protocol) UDDI(Universal Description, Discovery & Integration) WSDL(Web Services Description Language)
  • 4. Why Web Service • Interoperability – Web services enable exchanging data between different applications and platforms. • Can publish function or message to rest of the world • Reusable application components
  • 6. SOAP • Simple Object Access Protocol • Communication protocol • Format for sending messages • Platform independent • Based on XML • Allows to get around firewalls
  • 7. WSDL • Web Services Description Language • Based on XML • Used to describe web services • Used to locate web services
  • 9. Introducing REST • REST stands for Representational State Transfer • Large impact ; almost displaced SOAP and WSDL
  • 10. RESTful Web Services • Unique URL is representation of some object • Uses HTTP for CRUD(Create/Read/Update/Delete) operations
  • 11. REST vs SOAP • Rest • Light-Weight • Human readable • Easy to build • Access named resources through a single consistent interface • Permits different data formats • Example: getUser(Id) • Soap • Easy to consume-sometimes • Rigid-adheres to a contract (Standard Specification) • Exposes operations • Permits XML • Example: performTask(Id,task)
  • 12. The main idea • REST – Exposes a resource(object) via GET,POST etc. What you will do with that object is up to you. • SOAP - Exposes named operations to perform business logic.
  • 13. Example-SOAP • Query the details of a given User- <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-en coding"> <soap:body pb="http://www.acme.com/phonebook"> <pb:GetUserDetails> <pb:UserID>12345</pb:UserID> </pb:GetUserDetails> </soap:Body> </soap:Envelope>
  • 14. Example-REST • Query the details of a given User- http://www.acme.com/phonebook/UserDetails/12345
  • 15. Enough talk, let's fight code…