Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Html client accessing restful web service  RSS feed

dean woodford
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to web services and have tried to create one for a project. I have the service up and running through Netbeans/Java running on Glassfish server. I can access the service through my browser such as navigating to /resources/entities.user/ and haveing all of the users from my database in an xml document etc....

However, now I want to pull this informaation onto a webpage (index.html) for example. I have been trying to use ajax and jQuery to do this but with no joy.

The only code I have, which does not work, is this

for example, for this, the url I want to pull information from is /restdb/resources/entities.user

At the moment im not too fussed if it pulls it as xml or json and I just want to pull all of the users so I do not need to add any extra params.

If you have any help it will be very much appreciated, If I have missed off any information the please say and I will post whatever you need.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!