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 Spring in Action this week in the Spring 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