Hi!
R Srini wrote:My question is: How to write the backend web service that accepts the HTTP GET and returns a SOAP response? Is there a coding example or tutorial for this?
Using different techniques for implementing a web service according to the question:
- JAX-WS
JAX-WS is, as far as I know, out of the question since it will only accept POST request.
There is the javax.xml.ws.Provider<T> interface, which will allow you to implement a web service endpoint implementation class that accepts any kind of payload. To be able to supply payload, the client would still have to use POST.
- JAX-RS
JAX-RS is a more likely candidate.
As of JavaEE 6, EJBs can be annotated with JAX-RS annotations to be exposed as RESTful web services.
Using EJBs gives you container managed threads, support for transactions, method level security etc.
-
Servlet technology.
This is the basic technology used to implement
Java web services and it can be used to implement most anything using HTTP.
Using servlet technology, you have to consider
thread issues yourself, the container only supports more coarse grained security (compared to EJBs).
I have not seen any tutorials regarding the subject.
What are your motivations for wanting to implement such a service?
Best wishes!