RESTful Web Services
MyEclipse 7.x includes support for RESTful web service development in
addition to already supporting SOAP web service development
using JAX-WS and JAX-RPC. The REST features in MyEclipse are
based on Jersey 1.0.2, which is the reference implementation for
JAX-RS, the Java API for RESTful Web Services.
Using MyEclipse, you can create, deploy, run and test RESTful
web services without leaving the comfort of your IDE.
Create a new REST Web Service project in a couple of steps using
our web service project wizard:
Jersey framework libraries used in MyEclipse REST web service projects have been upgraded from version 1.0.0 to 1.0.2.
A new Mail & Multipart container has also been added to expose Jersey's high-level MIME multipart API.
In MyEclipse 7, we introduced the bottom up REST web service wizard and the the REST Method
wizard which you could use to create a new class with REST annotations or add REST methods to your class.
In MyEclipse 7.1, all these wizards can now be run several times on the same class or method to edit and fine tune the generated code.
To edit an existing class or method, use the editor or outline context menu:
While typing in the Java editor, you could also press CTRL + 3 to bring up the command list and type in "edit rest" to select the editing command you need.
While typing, this can be much faster than using the context menu; the corresponding wizard wil open, initialized with contents of the current class or method.
Editing an existing class:
Methods can be edited piecemeal or from the class wizard above:
Create RESTful resources from new or existing Java classes using
our bottom up REST Web Service wizard:
Testing RESTful Web Services
REST Web Services Explorer:
MyEclipse PRO subscribers can use our REST Web Services Explorer
to test RESTful web services in MyEclipse, all you need is the
path to a WADL file describing the service.
Test RESTful webservices developed using MyEclipse as well as
those running remotely, developed using other frameworks and
When testing a web service in the REST Web Services Explorer, if a REST call responds with JSON, the response will be seen directly in the Raw View tab, instead of having to
download it as a file to be viewed externally.