This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 13001
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:
subject: Inputs to a REST webservice
It's not a secret anymore!