Sorry Vincent, nothing personal :)<br><br>Obviously everyone is free to assist in the community :)<br><br><div class="gmail_quote">2011/12/15 Vincent Legendre <span dir="ltr">&lt;<a href="mailto:vincent.legendre@eurodecision.com">vincent.legendre@eurodecision.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    I&#39;m not listed in people you would like to answer, but there is
    something that could be the main problem here.<br>
    <br>
    In your URL, you use &quot;source&quot;, so it is normal that you get the
    corresponding DRL in response :<div class="im"><br>
    String<br>
content=client.path(&quot;guvnor-webapp-${project.version}/rest/packages/essaiRest/assets/tab2/<big><big><b>source</b></big></big>&quot;).accept(&quot;text/plain&quot;).get(String.class);<br>
    <br></div>
    If you want the XML, ie the asset XML representation in the
    repository, don&#39;t use &quot;source&quot;. I am not very sure of the correct
    URL to use, but according to <a href="http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html" target="_blank">http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html</a>,
    it should be the same, without &quot;/source&quot; at end, and then you should
    get the XML in the response. May be you should use &quot;Application/XML&quot;
    in the accept instead of &quot;text/plain&quot;.<br>
    <br>
    <br>
  </div>

<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>
<br></blockquote></div><br>