<?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>JavaDude&#039;s Groovy Snippets</title>
	<atom:link href="http://www.bighugesystems.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.bighugesystems.com/wordpress</link>
	<description>Collection of code snippets for common and uncommon tasks in Groovy</description>
	<lastBuildDate>Wed, 28 Jul 2010 09:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Accessing world time engine with Groovy and httpbuilder</title>
		<link>http://www.bighugesystems.com/wordpress/?p=104</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=104#comments</comments>
		<pubDate>Wed, 28 Jul 2010 09:41:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Tutorial]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[httbuilder]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=104</guid>
		<description><![CDATA[World Time Engine provides all kind of time related information for any given place on this planet. You can use their free web portal and enter GPS coordinates, city names or postal codes and retrieve timezone, daylight saving and more. Otherwise they provide an API to get the data via an http GET request. This [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://worldtimeengine.com/" target="_blank">World Time Engine</a> provides all kind of time related information for any given place on this planet. You can use their free web portal and enter GPS coordinates, city names or postal codes and retrieve timezone, daylight saving and more. Otherwise they provide an API to get the data via an <strong>http GET request</strong>. This service is not free, they charge you a 14 U$ for 50.000 requests.</p>
<p>API details you find <a href="http://worldtimeengine.com/api/geo" target="_blank">here</a>, but in short:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Request</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_about(1)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">http://worldtimeengine.com/api/&lt;apikey&gt;/&lt;latitude&gt;/&lt;longitude&gt;</div></li></ol></pre></div></div>
<p>and you get something like this:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Response</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_about(2)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;timezone xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> xsi:noNamespaceSchemaLocation=&quot;http://worldtimeengine.com/timezone.xsd&quot;&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;version&gt;1.1&lt;/version&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;location&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;region&gt;Australia/New South Wales&lt;/region&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;latitude&gt;-33.8671&lt;/latitude&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;longitude&gt;151.207&lt;/longitude&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;/location&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;time&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;utc&gt;2008-02-13 00:50:30&lt;/utc&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;local&gt;2008-02-13 11:50:30&lt;/local&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;zone&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;hasDST&gt;true&lt;/hasDST&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;current&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;abbreviation&gt;EDT&lt;/abbreviation&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;description&gt;Eastern Australia Daylight Savings Time&lt;/description&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;utcoffset&gt;+11:00&lt;/utcoffset&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;isdst&gt;true&lt;/isdst&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;effectiveUntil&gt;2008-03-29 19:00:00&lt;/effectiveUntil&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;/current&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;next&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;abbreviation&gt;EST&lt;/abbreviation&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;description&gt;Eastern Australia Standard Time&lt;/description&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;utcoffset&gt;+10:00&lt;/utcoffset&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;isdst&gt;false&lt;/isdst&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;effectiveUntil&gt;2008-10-25 18:00:00&lt;/effectiveUntil&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;/next&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;/zone&gt;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &lt;/time&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;/timezone&gt;</div></li></ol></pre></div></div>
<h3>How can we use Groovy to request for the data and access its detail ?</h3>
<ul>
<li>Get yourself a API Key from world time engine</li>
<li>We use the Groovy Console (<em>groovyConsole</em> from the shell)</li>
<li>We need the <a href="http://groovy.codehaus.org/modules/http-builder/" target="_blank">httpbuilder library</a></li>
<li>Copy<strong> http-builder-0.5.0.jar</strong> and all dependencies into the <strong>./groovy/lib</strong> folder in your home folder</li>
<li>Execute this code:<br />
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">request</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_about(3)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block"><pre class="java" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #a1a100;">import groovyx.net.http.*</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #a1a100;">import static groovyx.net.http.ContentType.*</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def worldTime = <span style="color: #000000; font-weight: bold;">new</span> RESTClient<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://worldtimeengine.com/api/{yourkey}/35.7647018432617/140.386001586914&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def resp = worldTime.<span style="color: #006600;">get</span><span style="color: #66cc66;">&#40;</span> contentType : XML<span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">println resp.<span style="color: #006600;">data</span>.<span style="color: #006600;">time</span>.<span style="color: #006600;">zone</span>.<span style="color: #006600;">current</span>.<span style="color: #006600;">abbreviation</span>.<span style="color: #006600;">text</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">println resp.<span style="color: #006600;">data</span></div></li></ol></pre></div></div></p>
<div id="attachment_134" class="wp-caption alignnone" style="width: 1059px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100728_0101.jpeg"><img class="size-full wp-image-134" title="SVH20100728_010" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100728_0101.jpeg" alt="" width="1049" height="458" /></a><p class="wp-caption-text">Groovy Console</p></div>
<p><div id="attachment_129" class="wp-caption alignnone" style="width: 949px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100728_009.jpeg"><img class="size-full wp-image-129" title="SVH20100728_009" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100728_009.jpeg" alt="" width="939" height="686" /></a><p class="wp-caption-text">XML Response</p></div></li>
<li>You see it is fairly simple to access specific fields with the groovy notation <strong><em>resp.data.time.zone.current.abbreviation.text()</em></strong></li>
</ul>
<h3>How do I use this ?</h3>
<ul>
<li>I use Groovy classes in my java EE application. You can cut down on boilperplate code dramatically by using Groovy !</li>
<li>The above service I use in an location aware application.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add libraries to groovyConsole ?</title>
		<link>http://www.bighugesystems.com/wordpress/?p=99</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=99#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:25:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[groovy]]></category>
		<category><![CDATA[classpath]]></category>
		<category><![CDATA[groovyconsole]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=99</guid>
		<description><![CDATA[For little experiments and trying snippets of Groovy-Code the console is good enough. But soon you will realize, you need more libraries. You can either manually add them via &#8220;Script &#124; Add jar file to classpath&#8221; (every time you open the console you would need to do this) or, for a permanent solution, copy it [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">For little experiments and trying snippets of Groovy-Code the console is good enough. But soon you will realize, you need more libraries. You can either manually add them via &#8220;<em>Script | Add jar file to classpat</em>h&#8221; (every time you open the console you would need to do this) or, for a permanent solution, copy it into you Groovy Home / lib folder, but that is not a  proper approach, rather copy the desired files into<strong> .groovy/lib</strong> in your user <strong>home</strong> directory (Linux).</p>
<div id="attachment_100" class="wp-caption alignnone" style="width: 160px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100726_003.jpeg"><img class="size-thumbnail wp-image-100" title="SVH20100726_003" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100726_003-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p><p class="wp-caption-text">groovyConsole</p></div>
<div id="attachment_101" class="wp-caption alignnone" style="width: 160px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100726_004.jpeg"><img class="size-thumbnail wp-image-101" title="SVH20100726_004" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100726_004-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Add libraries</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book: Getting Started with Grails, Second Edition</title>
		<link>http://www.bighugesystems.com/wordpress/?p=96</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=96#comments</comments>
		<pubDate>Wed, 10 Feb 2010 04:26:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Grails News]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[Grails]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=96</guid>
		<description><![CDATA[Getting Started with Grails by Scott Davis available for free download as pdf. Or buy the print version and support the author.
Infos and Download at www.infoq.com/minibooks/grails-getting-started
]]></description>
			<content:encoded><![CDATA[<p>Getting Started with Grails by Scott Davis available for free download as pdf. Or buy the print version and support the author.</p>
<p>Infos and Download at <a href="http://www.infoq.com/minibooks/grails-getting-started" target="_blank">www.infoq.com/minibooks/grails-getting-started</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=96</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing Trac with Groovy and the XML-RPC library</title>
		<link>http://www.bighugesystems.com/wordpress/?p=91</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=91#comments</comments>
		<pubDate>Tue, 12 Jan 2010 17:47:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Snippets]]></category>
		<category><![CDATA[Groovy Tutorial]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=91</guid>
		<description><![CDATA[With Groovy and the XML-RPC library (groovy.codehaus.org/XMLRPC) the access to Trac gets extremely easy. The older version 0.4 and 0.5 of the library could not handle basic authorization but thanks to Tim fixing the missing feature and some other xml format error, you can now access any Trac Wikipage with as little as 3 lines [...]]]></description>
			<content:encoded><![CDATA[<p>With Groovy and the XML-RPC library (<a href="http://groovy.codehaus.org/XMLRPC" target="_blank">groovy.codehaus.org/XMLRPC</a>) the access to Trac gets extremely easy. The older version 0.4 and 0.5 of the library could not handle basic authorization but thanks to Tim fixing the missing feature and some other xml format error, you can now access any Trac Wikipage with as little as 3 lines of Groovy code.</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Trac Access with XML-RPC</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_about(4)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block"><pre class="groovy" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a href="http://www.google.de/search?q=site%3Adocs.codehaus.org/%20def"><span style="color: #000000; font-weight: bold;">def</span></a> serverProxy <span style="color: #66cc66;">=</span> <a href="http://www.google.de/search?q=site%3Adocs.codehaus.org/%20new"><span style="color: #000000; font-weight: bold;">new</span></a> XMLRPCServerProxy<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;https://user:password@sometracserver.com/login/xmlrpc&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-style: italic;">// or</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-style: italic;">// def serverProxy = new XMLRPCServerProxy(&quot;http://sometracserver.com/login/xmlrpc&quot;)</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">serverProxy.<span style="color: #006600;">setBasicAuth</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;user&quot;</span>,<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a href="http://www.google.de/search?q=site%3Adocs.codehaus.org/%20println"><span style="color: #993399;">println</span></a> serverProxy.<span style="color: #006600;">wiki</span>.<span style="color: #006600;">getPage</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;TracBackup&quot;</span><span style="color: #66cc66;">&#41;</span></div></li></ol></pre></div></div>
<p>Remark:<br />
At the time of this entry version 0.6 is not released yet. Check for availability at <a href="http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/" target="_blank">repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/</a> for the new version or update your svn copy and build by yourself (s<a href="http://www.bighugesystems.com/wordpress/?p=62" target="_blank">ee blog entry</a>)</p>
<p><strong>Update 2010-02-01</strong>: The new version was released as 0.5.1 (<a href="http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/" target="_blank">link</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=91</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debugging XML-RPC calls</title>
		<link>http://www.bighugesystems.com/wordpress/?p=83</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=83#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:59:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Tutorial]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=83</guid>
		<description><![CDATA[The Groovy XML-RPC library 0.5 allows me to do perform basic authorization, but my Trac Server now throws a error code 500 at me (stating XML declaration not well-formed). Since I  dont know how to check the XML request the library posts, I choose to dissect the messages at the network level using Wireshark. Luckily [...]]]></description>
			<content:encoded><![CDATA[<p>The Groovy XML-RPC library 0.5 allows me to do perform basic authorization, but my Trac Server now throws a error code 500 at me (stating XML declaration not well-formed). Since I  dont know how to check the XML request the library posts, I choose to dissect the messages at the network level using Wireshark. Luckily I have a Python library that works fine, so I can compare the working version of the XML-RPC request. (Remark: Dont forget to start wireshark as root user/sudo)</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">XML Error</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_about(5)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">2010-01-07 09:03:03,095 Trac[main] DEBUG: Dispatching &lt;Request &quot;POST u'/login/xmlrpc'&quot;&gt;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">2010-01-07 09:03:03,117 Trac[main] ERROR: Internal Server Error:</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Traceback (most recent call last):</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/site-packages/trac/web/main.py&quot;, line 441, in _dispatch_request</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">dispatcher.dispatch(req)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/site-packages/trac/web/main.py&quot;, line 205, in dispatch</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">resp = chosen_handler.process_request(req)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/site-packages/TracXMLRPC-1.0.6-py2.5.egg/tracrpc/web_ui.py&quot;, line 163, in process_request</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">self.process_xml_request(req, content_type)</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/site-packages/TracXMLRPC-1.0.6-py2.5.egg/tracrpc/web_ui.py&quot;, line 167, in process_xml_request</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">args, method = xmlrpclib.loads(req.read(int(req.get_header('Content-Length'))))</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/xmlrpclib.py&quot;, line 1130, in loads</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">p.feed(data)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">File &quot;/usr/local/Python-2.5.2/lib/python2.5/xmlrpclib.py&quot;, line 547, in feed</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">self._parser.Parse(data, 0)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">ExpatError: XML declaration not well-formed: line 1, column 30</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">2010-01-07 09:03:03,121 Trac[chrome] DEBUG: Prepare chrome data for request</div></li></ol></pre></div></div>
<p><strong>Python Library/Call</strong></p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">XML-RPC</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_about(6)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block"><pre class="python" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">xmlrpclib</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">server = <span style="color: #dc143c;">xmlrpclib</span>.<span style="color: black;">ServerProxy</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;http://user:password@sometracserver.com/login/xmlrpc&quot;</span><span style="color: black;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff7700;font-weight:bold;">print</span> server.<span style="color: black;">wiki</span>.<span style="color: black;">getPage</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WikiStart&quot;</span><span style="color: black;">&#41;</span></div></li></ol></pre></div></div>
<p><strong>Result in Wireshark</strong></p>
<div id="attachment_86" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100111_001.jpeg"><img class="size-medium wp-image-86" title="SVH20100111_001" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100111_001-300x246.jpg" alt="" width="300" height="246" /></a><p class="wp-caption-text">Wireshark</p></div>
<p>Groovy Call</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">XML-RPC</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_about(7)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block"><pre class="groovy" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a href="http://www.google.de/search?q=site%3Adocs.codehaus.org/%20def"><span style="color: #000000; font-weight: bold;">def</span></a> serverProxy <span style="color: #66cc66;">=</span> <a href="http://www.google.de/search?q=site%3Adocs.codehaus.org/%20new"><span style="color: #000000; font-weight: bold;">new</span></a> XMLRPCServerProxy<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://sometracserver.com/project/login/xmlrpc&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">serverProxy.<span style="color: #006600;">setBasicAuth</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;user&quot;</span>,<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">serverProxy.<span style="color: #006600;">wiki</span>.<span style="color: #006600;">getPage</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;WikiStart&quot;</span><span style="color: #66cc66;">&#41;</span></div></li></ol></pre></div></div>
<p>Result in Wireshark</p>
<div id="attachment_88" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100111_002.jpeg"><img class="size-medium wp-image-88" title="SVH20100111_002" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100111_002-300x246.jpg" alt="" width="300" height="246" /></a><p class="wp-caption-text">Wireshark</p></div>
<p>There is the problem: encoding=&#8221;+ENCODING+&#8221;<br />
The Trac XML reader most likely will throw up the complete call because of this. Actually the comparison was not really required because the error is very obvious.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=83</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Groovy XML-RPC library 0.5</title>
		<link>http://www.bighugesystems.com/wordpress/?p=76</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=76#comments</comments>
		<pubDate>Wed, 06 Jan 2010 16:52:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy News]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=76</guid>
		<description><![CDATA[Update: Thanks to Guillaume&#8217;s persistence the version 0.5 was released officially today. Have a look at http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/ to find the latest release of the library. Thanks.
I will continue now with my main project, to create a Netbeans plugin for Trac.
]]></description>
			<content:encoded><![CDATA[<p>Update: Thanks to Guillaume&#8217;s persistence the version 0.5 was released officially today. Have a look at <a href="http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/" target="_blank">http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/</a> to find the latest release of the library. Thanks.</p>
<p>I will continue now with my main project, to create a Netbeans plugin for Trac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=76</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Groovy XML-RPC library 0.5</title>
		<link>http://www.bighugesystems.com/wordpress/?p=62</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=62#comments</comments>
		<pubDate>Sun, 03 Jan 2010 20:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Tutorial]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=62</guid>
		<description><![CDATA[The current release is 0.4 (groovy-xmlrpc-0.4.jar). The actual codebase also supports basic authorization (link), but this version 0.5 was not released yet due to the failing junit test.
In this tutorial we will build the library from the codebase. Using Netbeans we have all the tool we need to achieve this easily.
Tutorial:

Start Netbeans. Team &#124; Subversion [...]]]></description>
			<content:encoded><![CDATA[<p>The current release is 0.4 (groovy-xmlrpc-0.4.jar). The actual codebase also supports basic authorization (<a href="http://groups.google.com.sg/group/groovy-user/browse_thread/thread/2d2f3c508c025729#" target="_blank">link</a>), but this version 0.5 was not released yet due to the failing junit test.</p>
<p>In this tutorial we will build the library from the codebase. Using Netbeans we have all the tool we need to achieve this easily.</p>
<p>Tutorial:</p>
<ol>
<li>Start Netbeans. Team | Subversion | Checkout..<br />
Enter <strong>http://svn.codehaus.org/groovy/trunk/groovy/modules/xmlrpc/</strong> and a local directory</p>
<div id="attachment_63" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_003.jpeg"><img class="size-medium wp-image-63" title="SVH20100102_003" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_003-300x208.jpg" alt="" width="300" height="208" /></a><p class="wp-caption-text">SVN</p></div>
<div id="attachment_64" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_004.jpeg"><img class="size-medium wp-image-64" title="SVH20100102_004" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_004-300x208.jpg" alt="" width="300" height="208" /></a><p class="wp-caption-text">SVN</p></div>
<p><div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Checking out..</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_about(8)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">==[IDE]== Jan 2, 2010 8:55:32 PM Checking out...</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">co -r HEAD http://svn.codehaus.org/groovy/trunk/groovy/modules/xmlrpc /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc --config-dir /home/sven/.netbeans/6.8/config/svn/config --non-interactive</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar.md5</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar.md5</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.classpath</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.project</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">A    /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/src</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">...</div></li></ol></pre></div></div></li>
<li>Build the library (right click on the project and Build)<br />
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Build</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_about(9)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">NetBeans: Executing 'mvn -Dnetbeans.execution=true install'</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">NetBeans:      JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.16</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Scanning for projects...</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Building Groovy XML-RPC</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">task-segment: [install]...</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Installing /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/target/groovy-xmlrpc-0.5.0-SNAPSHOT.jar to /home/sven/.m2/repository/org/codehaus/groovy/groovy-xmlrpc/0.5.0-SNAPSHOT/groovy-xmlrpc-0.5.0-SNAPSHOT.jar</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">BUILD SUCCESSFULTotal time: 9 seconds</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Finished at: Sat Jan 02 21:34:59 CET 2010Final Memory: 25M/137M</div></li></ol></pre></div></div></li>
<li>Download missing dependencies<br />
Eventually some libraries are missing, Netbeans will remind you. (Just press download)</p>
<p><div id="attachment_66" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_001.jpeg"><img class="size-medium wp-image-66" title="SVH20100102_001" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20100102_001-300x195.jpg" alt="" width="300" height="195" /></a><p class="wp-caption-text">Dependency Problems</p></div></li>
</ol>
<p>In part 2 we will use the library to access TRAC via XML-RPC.</p>
<ol></ol>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy New Year 2010</title>
		<link>http://www.bighugesystems.com/wordpress/?p=70</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=70#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:38:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=70</guid>
		<description><![CDATA[I wish all my readers an exciting year 2010. I am looking forward to lots of your interesting blogs, screencasts and news from the Java, EE6 and Groovy &#38; Grails ecosystem.
]]></description>
			<content:encoded><![CDATA[<p>I wish all my readers an exciting year 2010. I am looking forward to lots of your interesting blogs, screencasts and news from the Java, EE6 and Groovy &amp; Grails ecosystem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: Accessing SNIPPLR with Groovy and Apache XML-RPC</title>
		<link>http://www.bighugesystems.com/wordpress/?p=51</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=51#comments</comments>
		<pubDate>Sun, 27 Dec 2009 09:49:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Snippets]]></category>
		<category><![CDATA[Groovy Tutorial]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[snipplr]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=51</guid>
		<description><![CDATA[In the previous post we used the Groovy XML-RPC library, in this snippet we will use the Apache XML-RPC library. Why ? There is no basic security implemented in the Groovy XML-RPC to access for example a
The prerequisites are still the same, just we change the library:

Download the Apache library from here. You should download [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous <a href="http://www.bighugesystems.com/wordpress/?p=42" target="_blank">post</a> we used the Groovy XML-RPC library, in this snippet we will use the Apache XML-RPC library. Why ? There is no basic security implemented in the Groovy XML-RPC to access for example a</p>
<p>The prerequisites are still the same, just we change the library:</p>
<ul>
<li>Download the <a href="http://ws.apache.org/xmlrpc/index.html" target="_blank">Apache</a> library from <a href="http://ws.apache.org/xmlrpc/download.html" target="_blank">here</a>. You should download a file from the binaries folder (<em>apache-xmlrpc-3.1.2-bin.zip</em>), inside you will find a lib subfolder with a couple of jars we need to add to the classpath.<br />
(<em>commons-logging-1.1.jar,    xmlrpc-client-3.1.2.jar,  xmlrpc-server-3.1.2.jar, ws-commons-util-1.0.2.jar,  xmlrpc-common-3.1.2.jar</em>)</li>
</ul>
<p>Snippet:</p>
<p></p><p><strong><a href=''></a></strong><br/></p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'>&nbsp;</div><p></p>
<p>Remark: You can add more parameters for the server with</p>
<ul>
<li>config.setEncoding(&#8220;UTF-8&#8243;)<br />
config.setBasicUserName(&#8220;[username]&#8220;);<br />
config.setBasicPassword(&#8220;[password]&#8220;);</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: Accessing SNIPPLR with Groovy and XML-RPC</title>
		<link>http://www.bighugesystems.com/wordpress/?p=42</link>
		<comments>http://www.bighugesystems.com/wordpress/?p=42#comments</comments>
		<pubDate>Sat, 26 Dec 2009 15:08:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Groovy Snippets]]></category>
		<category><![CDATA[Groovy Tutorial]]></category>
		<category><![CDATA[snipplr]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://www.bighugesystems.com/wordpress/?p=42</guid>
		<description><![CDATA[It is straight forward to access Snipplr via XML-RPC with Groovy. In this tutorial we use the Groovy Console to play with Snipplr snippets.
Requirements:

Groovy Installed
Snipplr Account (snipplr.com)
Your Snipplr API Key from your settings page (snipplr.com/settings)
The XML-RPC library (groovy-xmlrpc-0.4.jar or newer)

Tutorial:

Start the Groovy Console (usually with groovyConsole from a shell)

Add the XML-RPC library (Scripts&#124; Add jar [...]]]></description>
			<content:encoded><![CDATA[<p>It is straight forward to access Snipplr via XML-RPC with Groovy. In this tutorial we use the Groovy Console to play with Snipplr snippets.</p>
<p><strong>Requirements:</strong></p>
<ul>
<li><strong>Groovy</strong> Installed</li>
<li><strong>Snipplr Account</strong> (<a href="http://snipplr.com/" target="_blank">snipplr.com</a>)</li>
<li>Your Snipplr <strong>API Key</strong> from your settings page (<a href="http://snipplr.com/settings/" target="_blank">snipplr.com/settings</a>)</li>
<li>The <strong>XML-RPC library</strong> (<a href="http://repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/" target="_blank">groovy-xmlrpc-0.4.jar</a> or newer)</li>
</ul>
<p><strong>Tutorial</strong>:</p>
<ul>
<li>Start the Groovy Console (usually with <em>groovyConsole</em> from a shell)
<div id="attachment_43" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20091226_001.jpeg"><img class="size-medium wp-image-43" title="SVH20091226_001" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20091226_001-300x217.jpg" alt="" width="300" height="217" /></a><p class="wp-caption-text">Groovy Console</p></div></li>
<li>Add the XML-RPC library (Scripts| Add jar to classpath)
<p><div id="attachment_44" class="wp-caption alignnone" style="width: 310px"><a href="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20091226_002.jpeg"><img class="size-medium wp-image-44" title="SVH20091226_002" src="http://www.bighugesystems.com/wordpress/wp-content/uploads/SVH20091226_002-300x286.jpg" alt="" width="300" height="286" /></a><p class="wp-caption-text">Add library</p></div></li>
<li>The Snippet<br />
</p><p><strong><a href=''></a></strong><br/></p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'>&nbsp;</div><p></li>
<li><div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Result</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_about(10)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.bighugesystems.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block"><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Forth</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Rails</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">NewtonScript</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Diff</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Revolution</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Textpattern</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">[..]</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">W-Language</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">HTML</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Java</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Objective C</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">eZ Publish</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">VHDL</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Bash</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">C#</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">ColdFusion</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">You have 7 snippets and favorites</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">[id:25390, title:Create simple XML with MarkupBuilder, updated:[timezone:-05:00 EST, datetime:Thu Dec 24 10:13:50 CET 2009], favorite:false, private:false]</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">[id:25410, title:Create simple XML with StreamingMarkupBuilder (pretty-printed), updated:[timezone:-05:00 EST, datetime:Fri Dec 25 04:30:52 CET 2009], favorite:false, private:false]</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">[id:24147, title:Finding the Longest Consonant Cluster, updated:[timezone:-05:00 EST, datetime:Wed Dec 02 12:15:07 CET 2009], favorite:true, private:false]</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">[id:2090, title:Groovy Series: Regular Expressions 1/3, updated:[timezone:-05:00 EST, datetime:Fri Feb 02 11:42:05 CET 2007], favorite:true, private:false]</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import groovy.xml.*</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def createXML() {</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def xml = new groovy.xml.StreamingMarkupBuilder().bind(){</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mkp.xmlDeclaration()</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">content() {</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">parameter(x:0)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">person(id:100){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">firstname(&amp;quot;John&amp;quot;)</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">lastname(&amp;quot;Long&amp;quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">person(id:101){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">firstname(&amp;quot;Ken&amp;quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">lastname(&amp;quot;Smith&amp;quot;)</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">XmlUtil.serialize(xml)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def static main(def args) {</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">def x = createXML()</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">println x</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">xml groovy prettyprint StreamingMarkupBuilder</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">2009-12-25 03:37:20</div></li></ol></pre></div></div></p>
<p>Take a look at the <strong>API documentation</strong> at <a href="http://snipplr.com/blog/2006/07/06/snipplr-api/" target="_blank">snipplr.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bighugesystems.com/wordpress/?feed=rss2&amp;p=42</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
