Wrong forum :). <div><br></div><div>If you want to invoke GUVNOR REST Services using java, I would recommend you to use Apache Abdera. If you want to see some examples, you can take a look at Guvnor&#39;s tests (specially those using Abdera :P):</div>

<div><ul><li><a href="https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/AssetPackageResourceTest.java">https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/AssetPackageResourceTest.java</a></li>

<li><a href="https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceTest.java">https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceTest.java</a></li>

</ul><div>If you want to use Grails, then I don&#39;t know :) But in the worst case, invoking REST can be achieve by some simple steps in any platform:</div><div><ul><li>Create a HTTP Request pointing to the REST method you want (read Guvnor&#39;s manual to see all the different URLs you have)</li>

<li>Invoke the Request</li><li>Read the Response</li><li>Parse the Response</li></ul></div><div>Of course is much more helpful to have a library that already do all these steps for you :) </div><div> </div><div>Best Regards,</div>

<br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 7:46 PM, kavita <span dir="ltr">&lt;<a href="mailto:kavithasethu@gmail.com">kavithasethu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
Can any one provide a simple example of how to use Rest API in java/Grails ?<br>
<br>
Thanks,<br>
Kavitha.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drool-Rest-API-Example-tp3651460p3651460.html" target="_blank">http://drools.46999.n3.nabble.com/Drool-Rest-API-Example-tp3651460p3651460.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br></div>