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