Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Html client accessing restful web service  RSS feed

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.
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!