title: RESTeasy back-end - Restlet front-end : response entity null
body: <p>I have some REST services on my server (Jetty, RESTeasy) and a GWT client.
  I choosed to use Restlet-GWT module on the front end.</p>
  
  <p>I made a JSE client (RESTeasy client) and my service is well called (i see SQL trace in the log of Jetty server) and i get an xml response.</p>
  
  <p>Then i tried from GWT with Restlet. The web service is called (Jetty log) but i have a null response.</p>
  
  <p>Web service (Back end):</p>
  
  <pre class="lang-java prettyprint-override"><code>@GET
  @Path("/getArt/{id}")
  @Produces("application/xml")
  public Art getArt(@PathParam("id")int id){
      Art art= artDAO.findById(id);
      return art;
  }
  </code></pre>
  
  <p>Front-end GWT :</p>
  
  <pre class="lang-java prettyprint-override"><code>public class Front_End implements EntryPoint {
  
  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {    
  final Client client = new Client(Protocol.HTTP);
  client.get("http://localhost:8080/rest/service/getArt/1", new Callback() {
      @Override
      public void onEvent(Request request, Response response) {
  
          System.out.println("Reponse : " + response.getEntity().getText());
      }
  });
  }
  </code></pre>
  
  <p>RESTeasy client working :</p>
  
  <pre class="lang-java prettyprint-override"><code>public Object test(int id){
      try {
  
          ClientRequest request = new ClientRequest("http://localhost:8080/rest/service/getArt/"+id);
  
          request.accept("application/xml");
          ClientResponse&lt;String&gt; response = request.get(String.class);
  
          if (response.getStatus() == 200) 
          {
              Unmarshaller un = jc.createUnmarshaller();
              Object o = un.unmarshal(new StringReader(response.getEntity()));
              return o;
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
      return null;
  }
  </code></pre>
  
  <p>Are RESTeasy and Restlet "compatible" ? Should i use Restlet in the back end instead of RESTeasy ? What am i missing ?</p>
  
  <p>Thx in advance</p>