SlideShare ist ein Scribd-Unternehmen logo
1 von 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…

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

+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@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
+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...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

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…