wood burning stoves*
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
Author

Inputs to a REST webservice

Nikhil Das Nomula
Greenhorn

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
Rancher

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

See Wikipedia article

Bill
Nikhil Das Nomula
Greenhorn

Joined: Jun 10, 2011
Posts: 26
Thank you William or else I would have lived with that false impression
 
It is sorta covered in the JavaRanch Style Guide.
 
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