PDA

View Full Version : best web services layer for use with Spring



rjst
Jul 12th, 2005, 11:35 AM
Hi,

I need to expose a service as a web service, and since the rest of the app uses spring, I'm evaluating the possibility to use it as well for web services.

From the docs, I can see the spring supports integration with XFire, Axis and JAXRPC.

Which would be the recommended library ?

I've previously used Glue, and found it very easy to use, but I'd rather use something spring-managed, if possible.

thanks
Ricardo

Rod Johnson
Jul 12th, 2005, 11:44 AM
Just a note: if you still have a license, you can pretty easily make GLUE Spring-managed. I did so on a client project a couple of years back. I would have added my code to Spring, except that the GLUE license (at the time, anyway) seemed quite restrictive and it appeared that I couldn't safely do that.

rjst
Jul 12th, 2005, 11:55 AM
Hi,

Glue had a free version, last time I used it. I think it still exists (not sure). One of the doubts I have is the quality of XFire and Axis vs glue.

thanks
Ricardo

rjst
Jul 14th, 2005, 09:06 AM
Any help here ?

My objective would be to expose a bean, but the web services support in spring is not very well documented.

thanks
Ricardo

samokk
Jul 28th, 2005, 03:49 PM
Any help here ?

My objective would be to expose a bean, but the web services support in spring is not very well documented.

thanks
Ricardo
I am facing the same probleml. Does anyone have a link to some useful documentation ?

damonrand
Aug 1st, 2005, 02:28 PM
Hi,
I am investigating this too.. I just got the xFire echo service running by using the example out of the xfire M4 release.. But it was fairly undocumented and took a while.

Extending the echo sample to my production code I ran into this XFIRE-35 issue.
http://jira.codehaus.org/browse/XFIRE-35

So I'm going to take a crack at Axis now.. Anyone succeeded with it yet?

Damon.

Juergen Hoeller
Aug 2nd, 2005, 08:31 AM
For Axis, have a look at our JPetStore sample application, which illustrates the use of all Spring-supported remoting protocols, including JAX-RPC with Axis as backend.

Essentially, you need to use Spring's JaxRpcPortProxyFactoryBean at the client side and a traditional AxisServlet definition at the server side. The service endpoint that Axis manages there will in turn delegate to a Spring-managed bean in the root application context. Spring provides the ServletEndpointSupport class (as used by JPetStore) to make this as convenient as possible.

Juergen

garpinc2
Apr 28th, 2006, 11:19 AM
In the experts opinion "Which would be the recommended library ?" i.e which is easier to use and supports most of the commonly used features?