File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes restful service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "restful service" Watch "restful service" New topic

restful service

karibasappa Guttur Chikkaveerappa

Joined: Jan 26, 2013
Posts: 11
Hi All,

how the processing of xml can be done by rest service. and how clent can pass the xml to rest service.
please help me on this. its urgent.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41034
Which API are you using - JAX-RS? If so, look here for some options:

Ping & DNS - my free Android networking tools app
karibasappa Guttur Chikkaveerappa

Joined: Jan 26, 2013
Posts: 11
Hi dear, thank you for the help. yes i am using Jersy API.

the link is good, but there is no client program. can you give me the client code to pass xml to the rest service?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12756
Since RESTful services are based on HTTP methods, all you need are the standard library and related classes to create a HTTP POST request to the URL of the service with the body of the request containing the text of the XML document.

Nothing magic about it - so much simpler than SOAP.

Of course the various toolkits for RESTful services contain examples, but the client side is always very simple.


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: restful service
Similar Threads
REST service accepting XML data
REST Web service makes call to another REST web service
rest service with web flow
How to create Rest based WEb service
can i run webservice without axis server