Originally posted by Priya India:
Hi, I need to code a simple web service
The best option depends on your requirements and deployment environment. Nothing is stopping you from writing a simple
servlet that processes a request and sends back a response.
In that vein
XML-RPC has been around for quite some time. (
XML-RPC,
A DOM based XML-RPC servlet,
A Simple XML-RPC Client,
http://xmlrpc.sourceforge.net/). Then there is
Burlap.
In Spring you can use the
HTTP invoker.
Does the web service have to be SOAP-based because you are planning to publish a WSDL? (I wouldn't describe a SOAP-based web service as simple � though there are plenty of wizards that will build your stubs from a WSDL. JAX-WS supports the dubious feature of Java based annotations to aid the generation of the web service interface).
Axis 1.x is based on the earlier JAX-RPC standardAxis 2.x is based on the more recent JAX-WS standardSpring seems to like Apache CXF (Codehouse Xfire) (JAX-WS based)To get support for SLSB-based web services you have to use a full J2EE 1.4 (using JAX-RPC) or Java EE 5 (using JAX-WS; e.g. GlassFish) platform. Or can the web service be a simpler REST-style web service (which could be published through WADL)?
JAX-WS based stacks should support REST-style web servicesRestlet framework for JavaGlassfish also supports WADL. Have a look at the
Web Services Faq for further information.
[ July 10, 2007: Message edited by: Peer Reynders ]