{"id":1715,"date":"2019-03-03T13:53:47","date_gmt":"2019-03-03T13:53:47","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=1715"},"modified":"2025-03-07T08:25:01","modified_gmt":"2025-03-07T13:25:01","slug":"webservices-testing","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/webservices-testing\/","title":{"rendered":"WEBSERVICES TESTING"},"content":{"rendered":"<p>Webservices testing is a process of testing its web based services and the related protocols like SOAP and REST. SOAP is standard protocol for sending and receiving web service requests and responses which was defined by W3C. SOAP uses HTTP protocol for transfer of messages. REST is an <a href=\"https:\/\/www.h2kinfosys.com\/blog\/software-architecture\/\">architecture<\/a> that runs over HTTP it means REpresentational State Transfer. The REST emphasises the interactions between clients and services.<\/p>\n<p>Web Service Testing has the following steps:<\/p>\n<ul>\n<li>Understand the WSDL file<\/li>\n<li>Know the operation provided by web services<\/li>\n<li>Determine the XML format request which has to be sent<\/li>\n<li>Determine the XML response given<\/li>\n<li>Using any code or writing code for sending request or getting response<\/li>\n<\/ul>\n<p>The purpose of web service testing is to verify all the application programming interface (API) exposed by any application works as expected.<\/p>\n<p>Web services are a medium of communication where two applications will exchange the data apart from their architecture and technology.<\/p>\n<figure id=\"attachment_1717\" aria-describedby=\"caption-attachment-1717\" style=\"width: 545px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.h2kinfosys.com\/blog\/webservices-testing\/webervices-testing\/\" rel=\"attachment wp-att-1717\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-1717\" src=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2019\/03\/WEBERVICES-TESTING.jpg\" alt=\"WEBSERVICES TESTING\" width=\"545\" height=\"360\" title=\"\" srcset=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2019\/03\/WEBERVICES-TESTING.jpg 545w, https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2019\/03\/WEBERVICES-TESTING-300x198.jpg 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><figcaption id=\"caption-attachment-1717\" class=\"wp-caption-text\">WEBSERVICES TESTING<\/figcaption><\/figure>\n<h2><b>Why web services are needed?<\/b><\/h2>\n<p>So in a modern technology if you want develop software you don\u2019t have to do it by scratch directly you can plug-in to the application from any readymade service and start including those services in your application. For example, if you want to display the\u00a0 horoscope information in your application you don\u2019t have to collect, process and render the data. You can directly collect the information from those people who provide those services.<\/p>\n<h3><strong>The difference between Web service and Web API:<\/strong><\/h3>\n<p><b>In web service<\/b>, all communication or data exchange is by XML.<\/p>\n<p>It is defined by W3C and has defined standards<\/p>\n<p>Cannot compress the data, but can compress the HTML request. eg: SOAP<\/p>\n<p><b>In web API<\/b>, all communication or exchange of data can be either XML, JSON or plain data. No defined standards. Can compress data. Eg: REST<\/p>\n<p><a href=\"https:\/\/www.h2kinfosys.com\/blog\/web-services-testing\/\">CLICK HERE TO READ PART 2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Webservices testing is a process of testing its web based services and the related protocols like SOAP and REST. SOAP is standard protocol for sending and receiving web service requests and responses which was defined by W3C. SOAP uses HTTP protocol for transfer of messages. REST is an architecture that runs over HTTP it means [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[200,325,324,323,251,322],"class_list":["post-1715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa-tutorials","tag-api-testing","tag-html","tag-rest","tag-soap","tag-web-services-testing","tag-webservices-testing"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=1715"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1715\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/7594"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=1715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=1715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=1715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}