Hi all, I'm developing a web-based middleware (the software of my PhD) and I'm trying to use RESTLET. I create a server (and a client) and some restlets to implement the execution dynamics of my software.
I'm using XML for the representation of the resources (using JAXB). Well, I tried to implement a GET method and it works, it returns a response with a XML entity on it. But now I'm programming a POST method and I have a problem. I create a request with a XML string as an entity and it seems to be ok (I'm using a StringRepresentation) for this purpose. The code that I use is one of the following: Representation rep = new StringRepresentation(xmlString, MediaType.TEXT_XML); I debug the request and it seems to be well formed. But, when I try to get back the XML string on the handlePost method, I allways obtain a null value. How could I extract the XML String from a request's entity??? (i try to do it using an InputStreamReader but the result is the same) I would appreciate some help regarding this, it takes me two days!! :-) P.D.- Please forgive my poor english :-) -- Sergio Saugar García Área de Ciencias de la Computación e Inteligencia Artificial Departamento de Ciencias de la Computación Edificio Departamental II - Despacho 053 Escuela Técnica Superior de Ingeniería Informática Universidad Rey Juan Carlos Móstoles (MADRID) Clave PGP: http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xADFA3433
signature.asc
Description: OpenPGP digital signature