{"id":1223,"date":"2010-07-13T19:19:16","date_gmt":"2010-07-13T13:49:16","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=1223"},"modified":"2010-07-16T14:37:21","modified_gmt":"2010-07-16T09:07:21","slug":"generating-stubs-for-soap-calls-using-intellijidea","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/generating-stubs-for-soap-calls-using-intellijidea\/","title":{"rendered":"Generating stubs for SOAP calls using IntelliJ IDEA"},"content":{"rendered":"<p>Since working with SOAP calls in XML is very tiresome, we have libraries like axis and wsdl2java to generate stubs to make web-service client calls. I generated the stubs using IntelliJ IDEA to make SOAP calls in grails using the steps below.<\/p>\n<h4>1. Adding Framework Support<\/h4>\n<p><em>If the IntelliJ project does not already have the framework support,<\/em> then add it by right clicking on the &#8220;ProjectName&#8221; project and selecting the &#8220;Add Framework Support&#8221;. Go to Web services client in left pane and select Apache Axis in the right pane. Also, specify the path where you want necessary files to be downloaded. It will prompt you to download files. Just click &#8220;Yes&#8221;.<\/p>\n<h4>2. Generate Java code from WSDL<\/h4>\n<p>Right click the project&#8217;s src\/java directory, and select &#8220;Webservices &gt;&gt; Generate Java code from WSDL&#8221;. Now point to the URL and ensure that the &#8220;output path&#8221; points to &#8220;src\/java&#8221; .<\/p>\n<p>Using the generated stub, we should now be able to invoke web service calls by importing in the necessary classes where ever we want to use them.<\/p>\n<p>No more haggling with XML.. cheers&#8230;!!!<\/p>\n<p>~~With Regards~~<\/p>\n<p>~~Sachin Anand~~<\/p>\n<p>~~sachin@intelligrape.com~~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since working with SOAP calls in XML is very tiresome, we have libraries like axis and wsdl2java to generate stubs to make web-service client calls. I generated the stubs using IntelliJ IDEA to make SOAP calls in grails using the steps below. 1. Adding Framework Support If the IntelliJ project does not already have the [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":129},"categories":[1],"tags":[310,311,257],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1223"}],"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\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=1223"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1223\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=1223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=1223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=1223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}