Sorry for polluting the Mailing list. I figured out why my problem was.

I had to use

@ProduceMime({"application/json", "application/xml"})

Now, I am happily switching the response type based on the query param
_type.

Dawa :-D

On Mon, Nov 17, 2008 at 2:10 PM, Dawa Sherpa <[EMAIL PROTECTED]> wrote:

> Is there a way I can produce both XML and JSON based on the same method.
>
> In order for one to use _type=json|xml query param, there needs to be two
> separate function mounted to a PATH.
>
>
> How can I achieve alternate responses just based on one method ?
>
>
> I tried doing
> @ProduceMime("application/json, application/xml") , but still had no luck.
>
> Dawa
>

Reply via email to