Use JDev HTTP Analyzer to test Jersey RESTful Service

* From JDev, open Tools > HTTP Analyzer
* Click Create New Request icon (second from upper left corner)

httpAnalyzer_createNewRequest_1

* Click HTTP Content tab (second from lower left corner)

httpAnalyzer_httpContent_1

* Enter or select:
– URL field: Jersery RESTful service application WADL URL, e.g. http://127.0.0.1:7101/MyEJBModel/jersey/application.wadl
– Method: GET
* Click Send Request button and you should get a WADL XML response

httpAnalyzer_wadl_1

* On the WADL response window,
– locate the resource method you’d like to invoke, e.g. listDepartments
– hold down Ctl button and click the method block

httpAnalyzer_wadl_invoke_1

* A new HTTP Analyzer window opens prepopulated with the RESTful request info
* Click Send Request button
* Response shows up in the Response window

httpAnalyzer_wadl_invoke_3
This entry was posted in jdev, restful and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.