This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE" Watch "REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE" New topic
Author

REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE

sandeeprajsingh tandon
Ranch Hand

Joined: Mar 06, 2009
Posts: 70
Hi,
I wanted to know whats the default MEDIA TYPE or MIMETYPE for a restful webservices.
If we dont provide @Consumes or @Produces annotations, what is the rest service going to consume and produce.will it be text/html?

I am using the JERSEY implementation

thanks
sandeepraj
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE
 
Similar Threads
How to submit JSON data as request body in Apache CXF jax-rs (REST)
Exposing a service as both Restful and Soap
Jersey Client API Exception Handling issue
rest webservice response problem when returning list
how to get default media player name of the OS?