I followed this basic NetBeans tutorial on developing a RESTful web service. I was able to create and test the Restful Web Service for the Customer DB successfully.
However, when creating the Restful JavaScript Client for this RESTful web service, I am getting an empty table output. It seems that the app.getResources() call within the TestStubs.html JavaScript code section is returning an empty array with the app.getResources() call, and so the loop over the resources array never runs.
Here is the JavaScript section of TestStubs.html where resources is empty:
var app = new CustomerDBRest('http://localhost:8080/CustomerDBRest/webresources');
var resources = app.getResources(); //returns an empty array
for (i = 0; i < resources.length; i++)
{
...
}
Here's a screenshot of localhost:8080/CustomerDBRestJS/customerDBRest.client/TestStubs.html