Right click on the web project, then select "New->Restful Web Service Client Stubs".
In the wizard select a web project that contain the RESTful Web Services. Click "Finish".
Run "/Web Pages/rest/TestStubs.html" to test generated Javascripts for the
RESTful Web Service project. This displays a table of available resources.
Note: When using proxy for javascript cross-domain, create a java package under
org.netbeans.rest.proxy, then copy RestProxyServlet.txt to new package
,then rename RestProxyServlet.txt to RestProxyServlet.java. Add servlet mapping info
into /WEB-INF/web.xml as specified in the class documentation for RestProxyServlet.java.