Yes I have. I tried to do something similar to get the version history from Guvnor, but then I get exceptions which seem to be related to REST API and not Guvnor. I have no idea why this is happening.<br><br>Code:<br>        URL url = new URL(guvnorURI + &quot;/&quot; + packageName +&quot;/&quot;+&quot;versions&quot;);<br>
        <br>        HttpURLConnection con = (HttpURLConnection) url.openConnection();<br>        con.setRequestMethod(&quot;GET&quot;);<br>        con.setRequestProperty(&quot;Accept&quot;, MediaType.APPLICATION_ATOM_XML);<br>
        <br>        String userPassword = &quot;admin&quot; + &quot;:&quot; + &quot;admin&quot;;<br>        String encoding = new sun.misc.BASE64Encoder().encode(userPassword.getBytes());<br>        con.setRequestProperty(&quot;Authorization&quot;, &quot;Basic &quot; + encoding);<br>
        <br>        con.connect();<br><br>        InputStream versionHistory = con.getInputStream();<br><br>        Abdera ab = new Abdera();<br>        Document&lt;Feed&gt; doc = ab.getParser().parse(new InputStreamReader(versionHistory));<br>
        Feed feed = doc.getRoot();<br>        <br>        List&lt;Entry&gt; entries = feed.getEntries();<br>        <br>        for(Entry entry : entries){<br>            System.out.println(entry.getTitle());<br>            System.out.println(entry.getUpdated());<br>
            System.out.println(entry.getAuthor());<br>        }<br>        .<br>        .<br>        //remaining code.<br><br>Exception: thrown at  <b><i>Document&lt;Feed&gt; doc = ab.getParser().parse(new InputStreamReader(versionHistory));</i></b><br>
Exception in thread &quot;main&quot; org.apache.abdera.parser.ParseException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog<br> at [row,col {unknown-source}]: [1,0]<br>    at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:244)<br>
    at org.apache.abdera.parser.stax.FOMBuilder.getFomDocument(FOMBuilder.java:317)<br>    at org.apache.abdera.parser.stax.FOMParser.getDocument(FOMParser.java:79)<br>    at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:191)<br>
    at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:143)<br>    at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:86)<br>    at com.envisagesystems.rules.impl.TestRuleImpl.printVersionHistory(TestRuleImpl.java:66)<br>
    at com.envisagesystems.rules.impl.TestRuleImpl.main(TestRuleImpl.java:47)<br>Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog<br> at [row,col {unknown-source}]: [1,0]<br>    at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)<br>
    at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)<br>    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)<br>    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)<br>
    at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)<br>    at org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:149)<br>    at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:174)<br>
    ... 7 more<br><br>Any ideas?<br><br>Aseem<br><div class="gmail_quote">
On Thu, Jan 24, 2013 at 1:28 PM, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@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">

Have you tried reading Guvnor&#39;s <a href="http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e3485" target="_blank">documentation</a>?<br><br>There&#39;s a large section relating to REST calls.<br>


<br><div class="gmail_quote"><div><div>On 24 January 2013 18:20, Aseem Belsare <span dir="ltr">&lt;<a href="mailto:aseem.belsare@gmail.com" target="_blank">aseem.belsare@gmail.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hi,<div><br></div><div>I wish to obtain the version history from Guvnor repository. Stumbled upon <a href="http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.html</a> which seems to be related to the same topic, but the link in there is not working which points to the documentation for using REST API to get the assets/package version history info.</div>



<div><br></div><div>Is there a way of doing it? I started working on Guvnor just recently and I&#39;ve setup a simple rule and making changes to it to be saved in the Guvnor repo. I wish to pull the version history and generate a report using JAVA based off of it.</div>



<div><br></div><div>Any help would be appreciated.</div><div><br></div><div>Thanks,</div><div>Aseem</div>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br>