Professional Documents
Culture Documents
Meaning: - Web Services is the mechanism or the medium of communication through which two applications / machines
will exchange the data irrespective of their architecture and the technology they use.
Web services transfers data between client and server. The client sends a web request to the server and the server then
responds to the client. This response will differ based on the web service request type.
XML File has a structure called SOAP messages (which is consists of Envelope, Header and Body)
o Envelope – root element of SOAP Message. This contains Header and Body
o Header- it contains the information about the message , authentication, type, routing info etc.
o Body- it contains the actual data of the request which we have to sent to the server.
Webservice that communicates / exchange information between 2 appication using REST is called RESTFul WebServices.
What are principles of REST architecture or what are useful conditions to make RESTful webservices.
Uniform Interface
o Resource everything is a resource
o URI any resource/data can be accessed by a URI
URI – is a URL to access the resource of server
Example =
http://example.com/employees/10
Employees= Table
10= id
http://example.com/departments/123/employees
SOAP REST
SOAP stands for Simple Object Access Protocol. REST stands for Representational State Transfer
It is a XML based message protocol REST is not a protocol, it is architectural style.
Invoke services by calling RPC method Call services via URL Path
Transfer over HTTP/ FTP/ DHCP Transfer over HTTP only
SOAP web service always make a POST operation REST you can choose specific http methods like
GET,POST,PUT,DELETE.
Day 2
The main reason why we perform API testing to check the logic written by the developer is working as expected or not.
If the logic written by the developer is working as expected, then the developer will convert the logic into User Interface
(UI). So, when you are testing the API’s of any application that time UI is not present or yet to develop.
What is POSTMAN?
Whenever you wish to test your applications behavior for a particular API endpoint, after being
requested by client.
To view a response the server returns after requesting the API endpoint.
Customizing the requests made to server, and test the server’s response in different circumstances.
Developer
Tester
POSTMAN TOOL
Website - https://www.getpostman.com/
Download link - https://www.getpostman.com/download?platform=win64
Help and Support - https://learning.getpostman.com/docs/postman/launching_postman/installation_and_updates
Postman Native application are built on Electron(open source library for building cross-platform desktop application),
and help to overcome the restriction or what we cannot do on Chrome Application.
Cookies – In native we can work on cookies directly but in chrome app we need interceptor extension.
Built-In Proxy – native app comes with built in proxy which can be used to capture network traffic.
Menu Bar- native apps allows to create Postman Windows and tabs, edit preferences, and can perform many
other tasks. And can update to newer version.
Restricted headers- native apps let you send headers like Origin and User-Agent.
Navigation in POSTMAN
Sidebar- helps to find and manage the request and collections Sidebar has two category
History Tab – POSTMAN saves every query we send, those are visible in this area.
Collection Tab - creates and manages collections from the Collections tab in the sidebar
Header Bar –
Workspaces menu Opens the Workspaces menu where you can view personal
and team Workspaces, and create and manage Workspaces.
Interceptor/Proxy icon Manages proxy or Interceptor settings.
User dropdown 5. Displays current user and provides these options: "Profile",
"Account Settings", "Notification Preferences", "Active
Sessions", and "Add a new account".
Status bar
Or
Day 4