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
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply 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: 66
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: REST Webservices Default CONSUMES and PRODUCES MEDIA TYPES or MIME TYPE
 
Similar Threads
Jersey Client API Exception Handling issue
rest webservice response problem when returning list
how to get default media player name of the OS?
How to submit JSON data as request body in Apache CXF jax-rs (REST)
Exposing a service as both Restful and Soap