Re: Response from POST

2011-03-09 Thread Thierry Boileau
Hello Vincent,

that's the right way to do this.

Best regards,
Thierry Boileau

Nevermind - it looks as if the getResponse().setEntity() will accept my
> FileRepresentation and accomplish what I'd like to.
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2710256
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2710445

RE: Response from POST

2011-03-08 Thread Vincent Fazio
Nevermind - it looks as if the getResponse().setEntity() will accept my 
FileRepresentation and accomplish what I'd like to.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2710256


Response from POST

2011-03-08 Thread Vincent Fazio
Hi - First off I'm using an older version of Restlet (1.1).

Secondly, I'm not sure I'm doing the correct thing.  Here's what I'm trying to 
do...

I'm creating a reporting service.  I'd like my service to listen for POST 
requests.  The body of the request will contain the report definition.  I'd 
like the response to be the CSV file generated by the service.

I can't seem to figure out how the acceptRepresentation generated the response. 
 I've tried setting the representation passed into the method to a new 
FileRepresentation.  I've also tried to utilize the represent method, but it 
doesn't seem like that method is called as part of the POST processing.

How can I accomplish this seeming easy task?

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2710233