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=2382861

Reply via email to