wood burning stoves 2.0*
The moose likes Web Services and the fly likes Inputs to a REST webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Inputs to a REST webservice" Watch "Inputs to a REST webservice" New topic

Inputs to a REST webservice

Nikhil Das Nomula

Joined: Jun 10, 2011
Posts: 26
I was always under this feeling that REST web service can accept only XML, JSON and TEXT as input. However I heard that REST webservices can also take other formats as inputs like files and documents. Is that possible or are these converted into xml's and json's.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
There is absolutely no restriction on the kinds of resources a RESTful server can accept or return via HTTP.

See Wikipedia article

Nikhil Das Nomula

Joined: Jun 10, 2011
Posts: 26
Thank you William or else I would have lived with that false impression
I agree. Here's the link: http://aspose.com/file-tools
subject: Inputs to a REST webservice
Similar Threads
How to create multiple objects dynamically
What is a recursive decent parser and how does it work?
Accessing Query Params in Rest Service using Spring
JMS-queue handling
Hourly rate for Java Consultant