java - rest web services question.

Hi all,

I am new to SOAP and Rest based web services.

In my current standalone application, the request and response payload of a query are in the form of a xml document. This application needs to be accessed by several applications that are written in diffrent programming languages(.net, python etc).

Thus I want my application to be exposed as a web service. Some web services need to be SOAP based and others need not be.

I understand that I need to follow the below steps to make Rest based web service :

1a) I would expose my application interface description and business methods as URIs in a html/xml document.

1b) If client wants to retrieve data, how will he programatically access the associated URI and set the method parameters (if any)?

Also how does he send the request back to my application and how will my application understand it?

1d) Can the code to understand the client request be written in any programming language since Rest does not restrict usage of specific tools.

1f) It looks like the key feature of Rest is to have URIs in the reponse payload xml.

Is this always required? In other words, can the reponse xml be one long xml without URIs to the embedded resources?

Please let me know if Java has any API/tutorials to support the above requirements.

Your input is highly appreciated.

Thanks in advance for your valuable time and interest.

[1459 byte] By [kollareddya] at [2007-11-27 2:46:18]
# 1

You will be interested in JSR 311 JAX-RS: The JavaTM API for RESTful Web Services. This JSR is in the very early stages. The SWDP (Sun Web Developers Pack) 1.0 contains a very preliminary implementation of RESTBeans which is the basis for this JSR. Download the SWDP and look at the docs/samples in the rest-impl directory. http://developers.sun.com/web/swdp/. Here is a link to some docs on the REST APIs http://developers.sun.com/docs/web/swdp/r1/rest-impl/docs/getting-started.html

dkohlerta at 2007-7-12 3:14:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...