WEB SERVICESTHEORY & IMPLEMENTATIONAbdul 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 c...
How does it work• Internet protocol used : HTTP• Platform Elements:SOAP(Simple Object Access Protocol)UDDI(Universal Des...
Why Web Service• Interoperability – Web services enable exchanging databetween different applications and platforms.• Can ...
Popular Web Services
SOAP• Simple Object Access Protocol• Communication protocol• Format for sending messages• Platform independent• Based on X...
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 interf...
The main idea• REST – Exposes a resource(object) via GET,POST etc.What you will do with that object is up to you.• SOAP - ...
Example-SOAP• Query the details of a given User-<?xml version="1.0"?><soap:Envelope xmlns:soap="http://www.w3.org/2001/12/...
Example-REST• Query the details of a given User-http://www.acme.com/phonebook/UserDetails/12345
Enough talk, lets fightcode…
Upcoming SlideShare
Loading in …5
×

REST -Web services

754 views

Published on

A simple comparative analysis on Web Services.

A brief description of REST-ful Web Service

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
754
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
48
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

REST -Web services

  1. 1. WEB SERVICESTHEORY & IMPLEMENTATIONAbdul Munim Dibosh (abdulmunim.buet@gmail.com)CSE, BUET
  2. 2. What’s Web Service• Application components• Communicate using open protocols• Self contained and self describing• Can be consumed by any application
  3. 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. 4. Why Web Service• Interoperability – Web services enable exchanging databetween different applications and platforms.• Can publish function or message to rest of the world• Reusable application components
  5. 5. Popular Web Services
  6. 6. SOAP• Simple Object Access Protocol• Communication protocol• Format for sending messages• Platform independent• Based on XML• Allows to get around firewalls
  7. 7. WSDL• Web Services Description Language• Based on XML• Used to describe web services• Used to locate web services
  8. 8. I have something new…
  9. 9. Introducing REST• REST stands for Representational State Transfer• Large impact ; almost displaced SOAP and WSDL
  10. 10. RESTful Web Services• Unique URL is representation of some object• Uses HTTP for CRUD(Create/Read/Update/Delete)operations
  11. 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. 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 businesslogic.
  13. 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. 14. Example-REST• Query the details of a given User-http://www.acme.com/phonebook/UserDetails/12345
  15. 15. Enough talk, lets fightcode…

×