Missing inherit module : name.pehl.piriti.restlet.xml.client.XmlModelResponse<T>

22 views
Skip to first unread message

isy

unread,
Jan 18, 2013, 5:00:03 PM1/18/13
to pir...@googlegroups.com
Hi, thank you for your work.
I am following your tutorial to Read/Convert xml and send a POST request using restlet :

String xml = Connexion.WRITER.toXml(connexion);
ClientResource clientResource = new ClientResource("/resource/with/xml/representation");
clientResource
.setOnResponse(new XmlModelResponse(Connexion.XML)
{
   
@Override
   
public void onSuccess(Connexion connexion, Request request, Response response)
   
{
       
...
   
}

   
@Override
   
public void onError(IOException error, Request request, Response response)
   
{
       
...
   
}
});
clientResource
.post(xml,MediaType.APPLICATION_XML);


but i get the following error :
[ERROR] [front_end] - Line 78: No source code is available for type name.pehl.piriti.restlet.xml.client.XmlModelResponse<T>; did you forget to inherit a required module?

i already have :
<inherits name='org.restlet.Restlet'/>
<inherits name='org.restlet.GWT'/>
<inherits name="name.pehl.piriti.xml.XML" />

and tried some others without success. Could you help me to resolve my problem ?
Thx in advance

Harald Pehl

unread,
Jan 19, 2013, 8:16:30 AM1/19/13
to pir...@googlegroups.com
Add the following import "name.pehl.piriti.restlet.xml.XML" to your module definition.

- Harald
Reply all
Reply to author
Forward
0 new messages