aspose file tools*
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 Java 8 in Action this week in the Java 8 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)
how to get default media player name of the OS?
Exposing a service as both Restful and Soap
rest webservice response problem when returning list
Jersey Client API Exception Handling issue