File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Html client accessing restful web service Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Html client accessing restful web service" Watch "Html client accessing restful web service" New topic
Author

Html client accessing restful web service

dean woodford
Greenhorn

Joined: Jan 11, 2012
Posts: 1
Hi,

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.
 
 
subject: Html client accessing restful web service
 
Threads others viewed
Head Rush Ajax and JSON
SOAP with attachments, 3 questions
How Can I use web services for the following requirements?
Webservices and Request/Response
Data transfer between websites
developer file tools