<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Radek's Tech Blog &#187; axis</title>
	<atom:link href="http://urbas.tk/index.php/tag/axis/feed/" rel="self" type="application/rss+xml" />
	<link>http://urbas.tk</link>
	<description>Radoslaw H. Urbas homepage / blog</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:31:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eclipse plug-in as a web service client</title>
		<link>http://urbas.tk/index.php/2009/02/20/eclipse-plug-in-as-a-web-service-client/</link>
		<comments>http://urbas.tk/index.php/2009/02/20/eclipse-plug-in-as-a-web-service-client/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 21:16:07 +0000</pubDate>
		<dc:creator>Radoslaw Urbas</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[quick start]]></category>
		<category><![CDATA[web service client]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=57</guid>
		<description><![CDATA[Recently I was playing around consuming web service inside Eclipse plug-in. Making simple web service call maybe a bit tricky at the beginning. I&#8217;m going to provide quick start instruction here, Required software: Eclipse for RCP/Plug-in Developer JEE Standard Tools &#38; Axis Configuration steps: Define new JEE service in a workspace Create new plug-in project [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was playing around consuming web service inside Eclipse plug-in. Making simple web service call maybe a bit tricky at the beginning. I&#8217;m going to provide quick start instruction here,</p>
<p><em><strong>Required software</strong></em>:</p>
<ul>
<li>Eclipse for RCP/Plug-in Developer</li>
<li>JEE Standard Tools &amp; Axis<br /><img class="aligncenter size-medium wp-image-59" title="JEE Standard Tools" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_1-300x225.png" alt="JEE Standard Tools" width="300" height="225" /></li>
</ul>
<p><em><strong>Configuration steps</strong></em>:</p>
<ul>
<li>Define new JEE service in a workspace<br /><img class="aligncenter size-medium wp-image-60" title="Defining JEE server" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_2-300x285.png" alt="Defining JEE server" width="300" height="285" /></li>
<li>Create new plug-in project<br /><img class="aligncenter size-medium wp-image-61" title="Creating new plug-in project" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_3-300x285.png" alt="Creating new plug-in project" width="300" height="285" /></li>
<li>Add following dependencies to the plug-in:
<ul>
<li><em>org.apache.commons.logging</em></li>
<li><em>javax.wsdl</em></li>
<li><em>javax.xml.rpc</em></li>
<li><em>javax.xml.soap</em></li>
<li><em>org.apache.commons.discovery</em></li>
<li><em>org.apache.axis</em></li>
</ul>
<p><img class="aligncenter size-medium wp-image-62" title="Web service client dependencies" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_4-289x300.png" alt="Web service client dependencies" width="289" height="300" /></li>
<li>Generate web service client code<br /><img class="aligncenter size-medium wp-image-64" title="Generating web service client code" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_51-300x285.png" alt="Generating web service client code" width="300" height="285" />
<p><img class="aligncenter size-medium wp-image-65" title="Generating web service client code based on WSDL" src="http://urbas.tk/wp-content/eclipse_ws_quickstart_6-300x282.png" alt="Generating web service client code based on WSDL" width="300" height="282" /></li>
</ul>
<p><em><strong>Consume web service</strong></em>:</p>
<p>Using web service in side a plug-in is no different than anyone else. Sample of invoking web service method:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">TransportServiceSoap service <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TransportServiceLocator<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getTransportServiceSoap</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
service.<span style="color: #006633;">getCities</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Instruction presented above is based on Eclipse 3.4.1 and uses sample web service from <a href="http://www.urbanlife.pl/">http://www.urbanlife.pl/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://urbas.tk/index.php/2009/02/20/eclipse-plug-in-as-a-web-service-client/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

