Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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?