A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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
I agree. Here's the link:
- it saves me about five hours per week
subject: using a REST-based webservice
The Winners Are --
Reading a 300M file in Java the best way?
connection session variable
Clone () method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013