{"id":58054,"date":"2017-07-13T12:35:11","date_gmt":"2017-07-13T07:05:11","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=58054"},"modified":"2024-04-12T14:20:37","modified_gmt":"2024-04-12T08:50:37","slug":"jmeter-tutorial-adding-web-service-requests","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/","title":{"rendered":"Adding Web Service Requests"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a ref=\"magnificPopup\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"400\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\" alt=\"Adding Web Service Requests\" class=\"wp-image-96221\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png 750w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1-300x160.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n<p><strong>Adding Web Service Requests-<\/strong> In our Test Plan, we will use a .NET web service. Since you&#8217;re using the web service sampler, we won&#8217;t go into the details of writing a web service. If you don&#8217;t know how to write a web service, Google for web service and familiarize yourself with writing web services for Java and .NET. It should be noted there is a significant difference between how .NET and Java implement web services. The topic is too broad to cover in the user manual. Please refer to other sources to get a better idea of the differences.<\/p>\n<p>JMeter sends requests in the order that they appear in the tree.<\/p>\n<p>Start by adding the sampler WebService(SOAP) Request to the Jakarta Users element (Add &#8211;&gt; Sampler &#8211;&gt; WebService(SOAP) Request). Then, select the web service Request element in the tree and edit the following properties (see Figure 10.5):<\/p>\n<ul>\n<li>Change the Name field to &#8220;WebService(SOAP) Request&#8221;.<\/li>\n<li>Enter the WSDL URL and click &#8220;Load WSDL&#8221;.<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/1-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-58055 size-full aligncenter\" title=\"jmeter\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/1-11.png\" alt=\"jmeter web service requests\" width=\"626\" height=\"430\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/1-11.png 626w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/1-11-300x206.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p>If the WSDL file was loaded correctly, the &#8220;Web Methods&#8221; drop-down should be populated. If the drop down remains blank, it means there was a problem getting the WSDL. You can test the WSDL using a browser that reads XML. For example, if you&#8217;re testing an IIS web service the URL will look like this: http:\/\/localhost\/myWebService\/Service.asmx?WSDL. At this point, SOAPAction, URL and SOAP Data should be blank.<\/p>\n<p>Next, select the web method and click &#8220;Configure&#8221;. The sampler should populate the &#8220;URL&#8221; and &#8220;SOAPAction&#8221; text fields. Assuming the WSDL is valid, the correct soap action should be entered.<\/p>\n<p>The last step is to paste the SOAP message in the &#8220;SOAP\/XML-RPC Data&#8221; text area. You can optionally save the soap message to a file and browse to the location. For convenience, there is a third option of using a message folder. The sampler will randomly select files from a given folder and use the text for the soap message.<\/p>\n<p>If you do not want JMeter to read the response from the SOAP Web service, uncheck &#8220;Read Soap Responses.&#8221; If the test plan is intended to stress test a web service, the box should be unchecked. If the test plan is a functional test, the box should be checked. When &#8220;Read Soap Responses&#8221; is unchecked, no result will be displayed in view result tree or view results in table.<\/p>\n<p>An important note on the sampler. It will automatically use the proxy host and port passed to JMeter from command line, if those fields in the sampler are left blank. If a sampler has values in the proxy host and port text field, it will use the ones provided by the user. If no host or port are provided and JMeter wasn&#8217;t started with command-line options, the sampler will fail silently. This behavior may not be what users expect.<\/p>\n<p><strong>Note:<\/strong> If you&#8217;re using Cassini web server, it does not work correctly and is not a reliable web server. Cassini is meant to be a simple example and isn&#8217;t a full-blown web server like IIS. Cassini does not close connections correctly, which causes JMeter to hang or not get the response contents.<\/p>\n<p>Currently, only .NET uses SOAPAction, so it is normal to have a blank SOAPAction for all other web services. The list includes JWSDP, Weblogic, Axis, The Mind Electric Glue, and gSoap.<\/p>\n<p><strong>Test Your Software Testing Skills By Taking Our JMeter Practice Tests On This <a href=\"https:\/\/www.vskills.in\/practice\/quiz\/Jmeter\">Link<\/a><\/strong><\/p>\n<p><em><strong>Become Vskills Certified JMeter Tester. Gain knowledge on the module &#8220;Adding Web Service Requests&#8221;. Try the free practice test! <\/strong><\/em><\/p>\n<p><strong>Apply For <a href=\"https:\/\/www.vskills.in\/certification\/testing\/jmeter-tester-certification\">JMeter Certification<\/a><\/strong><\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tester-certification\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1.png\" alt=\"\" class=\"wp-image-95995\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1.png 961w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1-300x47.png 300w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tester-certification\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding Web Service Requests- In our Test Plan, we will use a .NET web service. Since you&#8217;re using the web service sampler, we won&#8217;t go into the details of writing a web service. If you don&#8217;t know how to write a web service, Google for web service and familiarize yourself with writing web services for&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[126],"tags":[7163,5671],"class_list":["post-58054","page","type-page","status-publish","hentry","category-software-testing","tag-jmeter","tag-jmeter-tester"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JMeter Tutorial | Adding Web Service Requests<\/title>\n<meta name=\"description\" content=\"Become Vskills Certified JMeter Tester. Gain knowledge on the module &quot;Adding Web Service Requests&quot;. Try the free practice test!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Tutorial | Adding Web Service Requests\" \/>\n<meta property=\"og:description\" content=\"Become Vskills Certified JMeter Tester. Gain knowledge on the module &quot;Adding Web Service Requests&quot;. Try the free practice test!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:50:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/\",\"name\":\"JMeter Tutorial | Adding Web Service Requests\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\",\"datePublished\":\"2017-07-13T07:05:11+00:00\",\"dateModified\":\"2024-04-12T08:50:37+00:00\",\"description\":\"Become Vskills Certified JMeter Tester. Gain knowledge on the module \\\"Adding Web Service Requests\\\". Try the free practice test!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png\",\"width\":750,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Web Service Requests\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JMeter Tutorial | Adding Web Service Requests","description":"Become Vskills Certified JMeter Tester. Gain knowledge on the module \"Adding Web Service Requests\". Try the free practice test!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Tutorial | Adding Web Service Requests","og_description":"Become Vskills Certified JMeter Tester. Gain knowledge on the module \"Adding Web Service Requests\". Try the free practice test!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:50:37+00:00","og_image":[{"url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/","name":"JMeter Tutorial | Adding Web Service Requests","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png","datePublished":"2017-07-13T07:05:11+00:00","dateModified":"2024-04-12T08:50:37+00:00","description":"Become Vskills Certified JMeter Tester. Gain knowledge on the module \"Adding Web Service Requests\". Try the free practice test!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#primaryimage","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Basic-Concepts-of-Hypothesis-Testing-6-1.png","width":750,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tutorial-adding-web-service-requests\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Adding Web Service Requests"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/58054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=58054"}],"version-history":[{"count":8,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/58054\/revisions"}],"predecessor-version":[{"id":96249,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/58054\/revisions\/96249"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=58054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=58054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=58054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}