SlideShare a Scribd company logo
1 of 18
Download to read offline
API
API
What is API?
●
API: is a software-to-software interface, not a user
interface.
●
With API, applications talk to each other without any
user knowledge or intervention.
●
Main goal of API is code/program reusable
●
An API resembles Software as a Service (SaaS), since
software developers don’t have to start from scratch
every time they write a program.
●
Instead of building one core application that tries to do
everything, the same application can contract out
certain responsibilities to remote software that does it
better.
What is API?
API WorkFlow
What is RESTful Web Service?
●
RESTful (REpresentational State Transfer) Web
Service: also known as RESTful API, is based
on REST technology which is an web
application that uses HTTP requests to GET,
PUT, POST and DELETE data.
●
REST technology is generally preferred to the
more robust Simple Object Access Protocol
(SOAP) technology because REST leverages
less bandwidth, making it more suitable for
internet usage.
RESTful Web Service..Cont..,
●
With cloud use on the rise, APIs are emerging
to expose web services. REST is a logical
choice for building APIs that allow users to
connect and interact with cloud services.
Types of API
●
Local API: is the original form of API which is
the OS APIs that provide services to application
programs (Front-end/GUI) requesting services
or data from the back-end such as voice service
or data from DB.
●
Program API: is based on RPC (Remote
Procedure Call) technology that making a
remote program execution from another
servers. SOA (Service Oriented Architecture)
APIs are sample of Program API.
Types of API...Cont..,
●
Web API: also known as Web Service, is
application/device communicate to each others
via World Wide Web (HTTP architecture).
●
There are two kinds of Web Service: SOAP
(Simple Object Access Protocol) and RESTful
(REpresentational State Transfer)
Rest API
●
What is SOAP Web Service?
●
SOAP Web Service: describes a standardized
way of integrating Web-based applications
using the XML, SOAP, WSDL and UDDI open
standards over an Internet protocol backbone.
●
XML (EXtensible Markup Language) is used to
tag the data.
●
SOAP (Simple Object Access Protocol) is used
to transfer the data. (XML-based messaging
protocol)
SOAP Web Service...Cont...
●
WSDL (Web Services Description Language) is
used for describing the services available.
(Written in XML)
●
UDDI (Universal Description, Discovery, and
Integration) is used for listing what services are
available (XML-based registry)
●
NOTE: Web services allow different web
applications from different sources to
communicate with each other without time-
consuming custom coding and because all
communication is in XML.
SOAP Web Service...Cont...
●
Web services are not tied to any one operating
system or programming language. For
example, Java can talk with Perl, Windows
applications can talk with UNIX applications.
REST vs SOAP Web Services
REST Web Services:
●
RESTful web services are stateless. You can
test this condition by restarting the server and
checking if interactions survive.
●
For most servers, RESTful web services
provide a good caching infrastructure over an
HTTP GET method. This can improve the
performance if the information the service
returns is not altered frequently and is not
dynamic.
REST vs SOAP Web
Services..Cont..,
●
Service producers and consumers must
understand the context and content being
passed along as there is no standard set of
rules to describe the REST web services
interface.
●
REST is useful for restricted-profile devices,
such as mobile, for which the overhead of
additional parameters are less (e.g., headers).
REST vs SOAP Web
Services..Cont..,
●
REST services are easy to integrate with
existing websites and are exposed with XML so
the HTML pages can consume the same with
ease. There is little need to refactor the existing
site architecture. As such, developers are more
productive because they don't need to rewrite
everything from scratch; instead, they just need
to add on the existing functionality.
●
A REST-based implementation is simple
compared to SOAP.
REST vs SOAP Web
Services..Cont..,
●
REST does not enforce any message format
such as XML or JSON. Whereas, SOAP is XML
based messaging protocol.
●
The Web Services Description Language
(WSDL) describes a common set of rules to
define the messages, bindings, operations and
location of the service. WSDL is akin to a
contract to define the interface that the service
offers.
REST vs SOAP Web
Services..Cont..,
●
SOAP requires less plumbing code than REST
services design (e.g., transactions, security,
coordination, addressing and trust). Most real-
world applications are not simple and support
complex operations, which require
conversational state and contextual information
to be maintained. With the SOAP approach,
developers don't need to write plumbing code
into the application layer.
REST vs SOAP Web
Services..Cont..,
●
SOAP web services, such as JAX-WS, are
useful for asynchronous processing and
invocation.
●
SOAP supports several protocols and
technologies, including WSDL, XSDs and WS-
Addressing.

More Related Content

Similar to Application.pdf

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.0Aravindharamanan S
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics Testing World
 
webservices overview
webservices overviewwebservices overview
webservices overviewelliando dias
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Vibhawa Nirmal
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxssuser403d87
 
Overview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIOverview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIPankaj Bajaj
 
An API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdfAn API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdfarakalamkah11
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni InturiSreeni I
 
RESTful API by abubakar
RESTful API by abubakarRESTful API by abubakar
RESTful API by abubakarKenAndTea
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web servicessnegacmr
 
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 & SOAPUIAdvancio
 
Introduction to Django REST Framework
Introduction to Django REST FrameworkIntroduction to Django REST Framework
Introduction to Django REST FrameworkAmitHadole
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architectureYisal Khan
 

Similar to Application.pdf (20)

Web services
Web servicesWeb services
Web services
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
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
 
Java web services
Java web servicesJava web services
Java web services
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
webservices overview
webservices overviewwebservices overview
webservices overview
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
 
Rest web service
Rest web serviceRest web service
Rest web service
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Overview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIOverview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB API
 
Web services
Web servicesWeb services
Web services
 
An API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdfAn API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdf
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
 
RESTful API by abubakar
RESTful API by abubakarRESTful API by abubakar
RESTful API by abubakar
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml 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
 
Web services
Web servicesWeb services
Web services
 
Soap Vs Rest
Soap Vs RestSoap Vs Rest
Soap Vs Rest
 
Introduction to Django REST Framework
Introduction to Django REST FrameworkIntroduction to Django REST Framework
Introduction to Django REST Framework
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 

Recently uploaded

Horizon Net Zero Dawn – keynote slides by Ben Abraham
Horizon Net Zero Dawn – keynote slides by Ben AbrahamHorizon Net Zero Dawn – keynote slides by Ben Abraham
Horizon Net Zero Dawn – keynote slides by Ben Abrahamssuserbb03ff
 
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
History, principles and use for biopesticide risk assessment: Boet Glandorf a...
History, principles and use for biopesticide risk assessment: Boet Glandorf a...History, principles and use for biopesticide risk assessment: Boet Glandorf a...
History, principles and use for biopesticide risk assessment: Boet Glandorf a...OECD Environment
 
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...Cluster TWEED
 
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...Suhani Kapoor
 
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...Suhani Kapoor
 
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girlsMumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girlsPooja Nehwal
 
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service NashikRussian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashikranjana rawat
 
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130Suhani Kapoor
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...ranjana rawat
 

Recently uploaded (20)

Horizon Net Zero Dawn – keynote slides by Ben Abraham
Horizon Net Zero Dawn – keynote slides by Ben AbrahamHorizon Net Zero Dawn – keynote slides by Ben Abraham
Horizon Net Zero Dawn – keynote slides by Ben Abraham
 
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Lavanya 7001305949 Independent Escort Service Nashik
 
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service
(ANAYA) Call Girls Hadapsar ( 7001035870 ) HI-Fi Pune Escorts Service
 
History, principles and use for biopesticide risk assessment: Boet Glandorf a...
History, principles and use for biopesticide risk assessment: Boet Glandorf a...History, principles and use for biopesticide risk assessment: Boet Glandorf a...
History, principles and use for biopesticide risk assessment: Boet Glandorf a...
 
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Talegaon Dabhade ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130
VIP Call Girls Service Tolichowki Hyderabad Call +91-8250192130
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(AISHA) Wagholi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...
webinaire-green-mirror-episode-2-Smart contracts and virtual purchase agreeme...
 
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...
VIP Call Girls Saharanpur Aaradhya 8250192130 Independent Escort Service Saha...
 
9953056974 ,Low Rate Call Girls In Adarsh Nagar Delhi 24hrs Available
9953056974 ,Low Rate Call Girls In Adarsh Nagar  Delhi 24hrs Available9953056974 ,Low Rate Call Girls In Adarsh Nagar  Delhi 24hrs Available
9953056974 ,Low Rate Call Girls In Adarsh Nagar Delhi 24hrs Available
 
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
 
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girlsMumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
 
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls ServicesGandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
 
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service NashikRussian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
 
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130
VIP Call Girls Service Chaitanyapuri Hyderabad Call +91-8250192130
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
 
E Waste Management
E Waste ManagementE Waste Management
E Waste Management
 
Escort Service Call Girls In Shakti Nagar, 99530°56974 Delhi NCR
Escort Service Call Girls In Shakti Nagar, 99530°56974 Delhi NCREscort Service Call Girls In Shakti Nagar, 99530°56974 Delhi NCR
Escort Service Call Girls In Shakti Nagar, 99530°56974 Delhi NCR
 

Application.pdf

  • 2. What is API? ● API: is a software-to-software interface, not a user interface. ● With API, applications talk to each other without any user knowledge or intervention. ● Main goal of API is code/program reusable ● An API resembles Software as a Service (SaaS), since software developers don’t have to start from scratch every time they write a program. ● Instead of building one core application that tries to do everything, the same application can contract out certain responsibilities to remote software that does it better.
  • 5. What is RESTful Web Service? ● RESTful (REpresentational State Transfer) Web Service: also known as RESTful API, is based on REST technology which is an web application that uses HTTP requests to GET, PUT, POST and DELETE data. ● REST technology is generally preferred to the more robust Simple Object Access Protocol (SOAP) technology because REST leverages less bandwidth, making it more suitable for internet usage.
  • 6. RESTful Web Service..Cont.., ● With cloud use on the rise, APIs are emerging to expose web services. REST is a logical choice for building APIs that allow users to connect and interact with cloud services.
  • 7. Types of API ● Local API: is the original form of API which is the OS APIs that provide services to application programs (Front-end/GUI) requesting services or data from the back-end such as voice service or data from DB. ● Program API: is based on RPC (Remote Procedure Call) technology that making a remote program execution from another servers. SOA (Service Oriented Architecture) APIs are sample of Program API.
  • 8. Types of API...Cont.., ● Web API: also known as Web Service, is application/device communicate to each others via World Wide Web (HTTP architecture). ● There are two kinds of Web Service: SOAP (Simple Object Access Protocol) and RESTful (REpresentational State Transfer)
  • 10. ● What is SOAP Web Service? ● SOAP Web Service: describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. ● XML (EXtensible Markup Language) is used to tag the data. ● SOAP (Simple Object Access Protocol) is used to transfer the data. (XML-based messaging protocol)
  • 11. SOAP Web Service...Cont... ● WSDL (Web Services Description Language) is used for describing the services available. (Written in XML) ● UDDI (Universal Description, Discovery, and Integration) is used for listing what services are available (XML-based registry) ● NOTE: Web services allow different web applications from different sources to communicate with each other without time- consuming custom coding and because all communication is in XML.
  • 12. SOAP Web Service...Cont... ● Web services are not tied to any one operating system or programming language. For example, Java can talk with Perl, Windows applications can talk with UNIX applications.
  • 13. REST vs SOAP Web Services REST Web Services: ● RESTful web services are stateless. You can test this condition by restarting the server and checking if interactions survive. ● For most servers, RESTful web services provide a good caching infrastructure over an HTTP GET method. This can improve the performance if the information the service returns is not altered frequently and is not dynamic.
  • 14. REST vs SOAP Web Services..Cont.., ● Service producers and consumers must understand the context and content being passed along as there is no standard set of rules to describe the REST web services interface. ● REST is useful for restricted-profile devices, such as mobile, for which the overhead of additional parameters are less (e.g., headers).
  • 15. REST vs SOAP Web Services..Cont.., ● REST services are easy to integrate with existing websites and are exposed with XML so the HTML pages can consume the same with ease. There is little need to refactor the existing site architecture. As such, developers are more productive because they don't need to rewrite everything from scratch; instead, they just need to add on the existing functionality. ● A REST-based implementation is simple compared to SOAP.
  • 16. REST vs SOAP Web Services..Cont.., ● REST does not enforce any message format such as XML or JSON. Whereas, SOAP is XML based messaging protocol. ● The Web Services Description Language (WSDL) describes a common set of rules to define the messages, bindings, operations and location of the service. WSDL is akin to a contract to define the interface that the service offers.
  • 17. REST vs SOAP Web Services..Cont.., ● SOAP requires less plumbing code than REST services design (e.g., transactions, security, coordination, addressing and trust). Most real- world applications are not simple and support complex operations, which require conversational state and contextual information to be maintained. With the SOAP approach, developers don't need to write plumbing code into the application layer.
  • 18. REST vs SOAP Web Services..Cont.., ● SOAP web services, such as JAX-WS, are useful for asynchronous processing and invocation. ● SOAP supports several protocols and technologies, including WSDL, XSDs and WS- Addressing.