Hi there, Restlet has support for such workarounds thanks to its TunnelService. Have a look at this class: http://www.restlet.org/documentation/snapshot/jse/api/org/restlet/service/Tu nnelService.html
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoyé : mercredi 12 août 2009 13:28 À : [email protected] Objet : Content Negociation by extension Hi everyone, I use Restlet to provide external services (for other apps) and internal services (who are called inside the application itself). Actually I have a search service (SearchResource) who handle search on object with an url like "/services/search/<ObjectName>?q=<query>[&f=<ReturnedFields>]" This resource respond in "Text/Xml" but now I introduce Ajax (with JQuery) into my app an I Want to call the same service trough an autocompleter. I have updated the resource to negociate XMl and JSon response but my javascript autocompleter is unable to change the request header. So I want to negociate content on header and on request extension : "/services/search/<ObjectName>[.json]?q=<query>[&f=<ReturnedFields>]" Is Restlet capable to achieve that or how can I obtains this result in an elegant and reusable way ? Thanks ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23828 61 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386321

