{"id":14649,"date":"2014-07-11T13:59:40","date_gmt":"2014-07-11T08:29:40","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=14649"},"modified":"2016-12-19T14:54:41","modified_gmt":"2016-12-19T09:24:41","slug":"testing-webservice-using-soapui","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/testing-webservice-using-soapui\/","title":{"rendered":"Testing WebService using SoapUI"},"content":{"rendered":"<p>For the last several months, I was developing Web services for an external client. Then I came up with the need to test the SOAP services. Initially the easy way to go for me, I developed my custom application for testing it. But testing for different scenario becomes pain with that, So I was looking for a better\/easier\/configurable system. Well after googling I found <a title=\"SoapUi\" href=\"http:\/\/www.soapui.org\/\">SoapUi<\/a> tool, that best fit my requirement. Not only is it very easy to use but also it saves me a lots of time.<\/p>\n<p>SoapUI tool is a free and open source cross-platform Functional Testing solution. It allows you to easily and rapidly create and execute automated functional tests.<\/p>\n<p style=\"font-size: 30px\">Getting SoapUI to work:<\/p>\n<p>Installing this tool on Linux is as simple as follow:<\/p>\n<ol>\n<li>Download the binary zip from <a title=\"soapui\" href=\"http:\/\/www.soapui.org\/\">soapui<\/a><\/li>\n<li>After extracting the folder, execute soapui.sh from bin folder<\/li>\n<\/ol>\n<p style=\"margin-top: 20px\">First you need to create a new SOAP Project(click on File -&gt; new SOAP project). Name the project then browse to the WSDL location. It will automatically create Test suite.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/screenShot.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-14653\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/screenShot.png\" alt=\"screenShot\" width=\"700\" \/><\/a><\/p>\n<p style=\"margin-bottom: 10px\">Double click on request will open soap request window with comments that will help you to fill it. Just enter the values and submit the request to specified End point Url to get the response.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/Request.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-14696\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/Request.png\" alt=\"Request\" width=\"700\" \/><\/a><\/p>\n<p style=\"margin-top: 10px\">thats it,<\/p>\n<p style=\"margin-bottom: 10px\">You can include custom HTTP Headers, the optional SOAP Header element that contains application-specific information (like authentication , etc) about the SOAP message. Well doing that in SoapUI is bit easy, you can click on the Header inspector of XML editor and then include whatever you need.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/wsdl-header.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-14723\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/wsdl-header.png\" alt=\"wsdl-header\" width=\"720\" \/><\/a><\/p>\n<p style=\"margin-bottom: 10px\">You can also see the full HTTP logs at the bottom by clicking on &#8220;http log&#8221; tab.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/logs.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-14679\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/logs.png\" alt=\"logs\" width=\"700\" \/><\/a><\/p>\n<p>The SoapUI is designed to make testing SOAP based webservices easier.<br \/>\nSo guys, this is how you can test your SOAP interfaces with a little efforts.<\/p>\n<blockquote><p>Akash Sethi<br \/>\nSoftware Engineer<br \/>\nIntelliGrape Software Pvt. Ltd.<br \/>\nakash@intelligrape.com<br \/>\nMy LinkedIn<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>For the last several months, I was developing Web services for an external client. Then I came up with the need to test the SOAP services. Initially the easy way to go for me, I developed my custom application for testing it. But testing for different scenario becomes pain with that, So I was looking [&hellip;]<\/p>\n","protected":false},"author":67,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5},"categories":[7],"tags":[257,1477,1476,1475],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/14649"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=14649"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/14649\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=14649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=14649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=14649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}