You are on page 1of 2

WebService -It is a Software Component (set of Protocol/standards) used for

Communicating between 2 Devices/2 Applications.

Types of WebService
1)SOAP -Simple Object Access Protocol / stateful /traditional
2)Restful - stateless /Web APT

SOAP WebService - It is Slow as XML data needs to be parsed .You have to follow
strict specification to use it.
(To Consume it you have to create a proxy which makes your
request-response heavier hence it is slow )

Restful WebService - REST stands for Representational State Transfer.


It is Fast (You do not need to generate proxy)
RESTful web service permits different data format such as Plain Text, HTML, XML and
JSON.
Only std methods available - Get ,Put,Post and Delete
This service can be considered as Resource only because We cannot customize it
(embed logic in it)

******************************************************

What is Stateful and Stateless

"Stateful" means that the server stores information about the client and uses that
information over a series of requests.
You can do that over HTTP with any higher-level protocol. I have written a client
for a stateful SOAP protocol.

Basically REST is stateless means every HTTP request happens in complete isolation.

When the client makes an HTTP request, it includes all information necessary for
the server to fulfill that request. The server never relies on information from
previous requests.

******************************************************

Sample WebSite ->http://toolsqa.com/rest-assured/configure-eclipse-with-rest-


assured/

http://www.dneonline.com/calculator.asmx

To access WebService use ->http://www.webservicex.net/CurrencyConvertor.asmx

http://www.dneonline.com/calculator.asmx

http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
To Access WSDL use ?WSDL infront of it

You might also like