File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
using a REST-based webservice
Joined: Mar 09, 2007
Aug 07, 2008 13:14:00
What's the best way to do this?
Is it a simple matter of reading the url to the WS, reading the contents as html, and then running that through a XML reader?
I'm pretty new to all this so any help (best practice) would be appreciated....
Author and all-around good cowpoke
Joined: Mar 22, 2000
Aug 07, 2008 13:31:00
I gather you are trying to make a client for an existing RESTful webservice.
Typically you would create a
to a URL and read the response stream according the type of the return.
RESTful services are not restricted to returning XML, the returned stream could be any MIME type. Surely you have some sort of documentation on what this service returns.
If it returns XML you can hand the response stream to an XML parser and follow standard XML processing.
Java Resources at
subject: using a REST-based webservice
The Winners Are --
connection session variable
Reading a 300M file in Java the best way?
Clone () method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013