KEMBAR78
SOAP and REST Web Service Testing | PDF | Web Service | Soap
0% found this document useful (0 votes)
75 views5 pages

SOAP and REST Web Service Testing

SOAP (Simple Object Access Protocol) is an XML-based protocol for exchanging information between applications over HTTP, while UDDI (Universal Description, Discovery, and Integration) is a standard for describing and finding web services. WSDL (Web Services Description Language) documents define SOAP web services and their operations. REST (Representational State Transfer) is an architectural style for web services that uses various data formats, including JSON, which is popular due to its lightweight nature and ease of use across different platforms.

Uploaded by

Alisha Shweta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views5 pages

SOAP and REST Web Service Testing

SOAP (Simple Object Access Protocol) is an XML-based protocol for exchanging information between applications over HTTP, while UDDI (Universal Description, Discovery, and Integration) is a standard for describing and finding web services. WSDL (Web Services Description Language) documents define SOAP web services and their operations. REST (Representational State Transfer) is an architectural style for web services that uses various data formats, including JSON, which is popular due to its lightweight nature and ease of use across different platforms.

Uploaded by

Alisha Shweta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

What is SOAP?

• SOAP stands for Simple Object Access Protocol

• SOAP is a simple XML-based protocol to let applications exchange information over


HTTP.
• SOAP uses XML to exchange information between applications.
• SOAP provides a way to communicate between 2 applications running on different
operating systems, with different technologies and programming languages.
• SOAP communicates via Internet

• SOAP is platform independent


• SOAP is language independent
• SOAP is simple and extensible

UDDI
• UDDI is an XML-based standard for describing, publishing, and finding web services.
• UDDI stands for Universal Description, Discovery, and Integration.
• UDDI is a specification for a distributed registry of web services.
What is WSDL?
• An WSDL document describes a soap web service. It specifies the location of the service, and
the methods of the service, using these major elements:

• Element • Description

• Defines the (XML Schema) data


• <types>
types used by the web service

• Defines the data elements for


• <message>
each operation

• Describes the operations that


• <portType> can be performed and the
messages involved.

• Defines the protocol and data


• <binding>
format for each port type

Soap Web Service API Testing


• When two applications exchange information via soap protocol, which is
based on xml, testing those request and response is called Soap
webservice testing
• SOAP Web service exposed via .WSDL file
• EG: SOAP API
http://www.dneonline.com/calculator.asmx?WSDL
http://map.google/api/soap/service.wsdl
What is Rest?
• REST stands for Representational State Transfer.

• It means when a RESTful API is called, the server will transfer to the client a
representation of the state of the request
• REST is an architectural style for developing web services. REST is popular due to its
simplicity and the fact that it builds upon existing systems and features of the
internet's http resource.

Why JSON is Popular in Restful Webservice?


• Java Script Object Notation

• It’s a Programing language to exchange information between 2 applications

• The JSON format is syntactically identical to the code for creating JavaScript objects.

Because of this similarity, a JavaScript program can easily convert JSON data into native
JavaScript objects.

• JSON is a lightweight format for storing and transporting data

• All Browser & Mobile UI can easily consume json language

• NoSQL databases can directly store the data in the form of JSON (Mongo DB, Cassandra)

• It is platform independent

Restful Webservice API Testing


• When two applications exchange information via http protocol, which is based
json/xml/text/html, testing those request and response is called Rest webservice
testing
• Rest API Webservice are exposed via URI
• EG: Rest API
http://map.google/api/getlocation

http://map.google/api/gettraffice?src=‘value’&dest=value
http://map.google/api/gettraffic
Difference between SOAP/ Rest

SOAP Web Service Rest Web Service


SOAP is a protocol REST is Architectural style
Simple Object Access Protocol Representational State Transfer
SOAP can't use REST Web service; it is a protocol REST can use soap as well since it is concept
SOAP expose the services (Business Logic) via .WSDL file REST expose the service (Business Logic) via URI
SOAP is designed using too much standards REST does not define too much standards
REST permits different data formats- Plain text, html,
SOAP permits XML data format only JSON, XML, JS
SOAP requires more bandwidth and resources REST requires less bandwidth and resource than SOAP
Inherits security measures from underlined transport
SOAP defines its own security Protocol (ouath-1.0, outh-2.0, Bearer token)
Less preferred than REST REST more preferred than SOAP

Advantages of Web Service


1. Web Services Interoperability (WS-I)

• Web Services are "Application, Platform and Technology Independent"


• Ex: Uber / OLA and Google Maps shares the data among each other

2. Loosely Coupled
• Each application is independent of one another. Hence changes done to one
application will not impact the "unrelated areas"
3. No need of re-inventing the wheel
• Web Services reduces the software development time
• This helps the other business partners to quickly develop application and start doing
business
• This helps business to save time and money by cutting development time

• Ex: Uber / OLA can make use of Google Maps


4. Business Opportunity
• Web Services will open the door for new business opportunities by making it easy to
connect with partners
• Ex: Dominos can get the order from Food Panda / Swiggy along with getting orders
from its own site

5. Service Reuse
• Web Services takes code reuse a step further
• Ex: An organization can have a "Single Payment Gateway service" which helps other
web applications of that organization to interact

You might also like