aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 12683
There is absolutely no restriction on the kinds of resources a RESTful server can accept or return via HTTP.

See Wikipedia article


Java Resources at
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:
subject: Inputs to a REST webservice
Similar Threads
JMS-queue handling
Accessing Query Params in Rest Service using Spring
What is a recursive decent parser and how does it work?
How to create multiple objects dynamically
Hourly rate for Java Consultant