Web Services

What is Web Service Testing?

Web Services Testing is testing of Web services and its Protocols like SOAP & REST. To test a Webservice you can

  1. Test Manually
  2. Create your own Automation Code
  3. Use an off-the shelf automation tool like SoapUI.
  • Web service is is technology which allow communicate between different languages. It allow us to pass the data over the internet in easy way.
  • In other word Web services provides an easy way to achieve interoperbility.
  • It follow collection of standareds or protocols for exchanging information between two device over internet/network.
  • Ex – Java can easilty interact with Ruby, Paython etc using Web Services.
  • Request – A request which is initated by Client.
  • Response – A respose send by server based on client request

SOAP (Simple Object Access Protocol)

  • SOAP can interact with other programing language applications.
  • It is just a protocol which is XML Based for accesing web service over the interne


  • it has own security known as WS Security.
  • Language and Platform indenpendent.


  • It support only XML format
  • It works with WSDL file only so we can’t have other format like JSON, Header etc..

Restful Web Services

  • Rest stands for Representational State Transfer
  • Platform dependent
  • support multiple format like JSon, Html, XML, Plain text file too.
  • Fast compared to SAP
  • its not a protocol liks SOAP it just a architectural design.
  • Restfull is most widly used now a days

Response Codes

  • 1xx information based
  • 2xx (ex. 200) Success
  • 3xx Redirection
  • 4xx Client Error
  • 5xx Server Error

WebService Testing involves following steps –

  1. Understand the WSDL file
  2. Determine the operations that particular web service provides
  3. Determine the XML request format which we need to send
  4. Determine the response XML format
  5. Using a tool or writing code to send request and validate the response


WSDL (Web Services Description Language) is an XML based language which will be used to describe the services offered by a web service.

WSDL describes all the operations offered by the particular web service in the XML format. It also defines how the services can be called, i.e what input value we have to provide and what will be the format of the response it is going to generate for each kind of service.

Using SoapUI to Test the WebService

In SoapUI

  1. Go to File > New Soap Project
  2. Enter the project Name and the WSDL URI location
  3. Click OK


  1. Expand the first request and double click on the ‘Request1’. It will display the SOAP request in the XML format.
  2. Enter the From Currency and To Currency
  3. Click on the submit button
  4. Response XML will be displayed right side pane.



About samp79

Professional Automation Tester
This entry was posted in Web Service. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s