10. “A Web Service is a piece of business logic, located
somewhere on the internet, that is accessible
through standard-based Internet protocols, such as
HTTP or SMTP. Using a web service could be as
simple as logging into a site or as complex as
facilitating a multi-organization business negotiation.”
(David Chappel, Java Web Services).
10
16. Web Services and SOA Architecture 16
Registry
(
Service
Provider
"
Service
Consumer
"
1.
Publish
W
SDL
2. Query services
3. Response
W
SDL
4. XML service request
5. XML service response
20. The Principles 20
• Uniform Interface using using Uniform
Resource Identifiers (URIs)
• Client-Server
• Stateless
•Cacheable
•Layered System
21. When Use REST over SOAP 21
• REST is not protocol, rather a way of doing Web
calls over HTTP using XML or JSON
• Easy to use as it's a simple HTTP protocol with
JSON or XML
•Great for using with Javascript, AJAX, and
jQuery.
•Usually REST offers rapid operating speed
without the need of extensive processing.
• No standard authentication protocol.
• No standard data definition language.
25. REST Basics 25
• Design your Web Services operations
combining resources and verbs
Operations Definition
List Tickets GET /myapp/tickets
Get Single Ticket GET /myapp/tickets/<id>
Create Ticket POST /myapp/tickets
Update Existing Ticket PUT /myapp/tickets/<id>
Delete Existing Ticket DELETE /myapp/tickets/<id>