users@jersey.java.net

RESTful WS: How to return something different than String?

From: Oscar Calderon <oscar.kalderon_at_gmail.com>
Date: Wed, 24 Feb 2010 10:10:09 -0600

Hi to all, i'm a newbie in RESTful web services. I've worked before with
normal web services and i have a doubt about sending/receiving data with
service. Somebody knows something like a guide to explain how to return
something different than a String from RESTful web service resource? For
example return a stream, a list or something like that? That's because
i've developed some simple RESTful web services that returns only a
string, for example a XML string or JSON String, but i haven't found
documentation or something like "How to receive a list as parameter" or
"How to return a stream" or something like that.

Somebody has an idea about some tutorial or documentation to learn that?

Thanks in advance.

-- 
Oscar Calderon
JAVA Tutorials and How to's? Visit http://www.javahowto.net/