|
From: <jue...@we...> - 2003-12-19 07:52:53
|
Michael, =20 I've done some Spring/Axis integration myself in the last couple of = days. In the course of this, I've added JAX-RPC support classes to = org.springframework.remoting.jaxrpc (to be committed todays): mainly for = *accessing* Web Services via JAX-RPC, exposing their proxies for bean = references (similar to JndiObjectFactoryBean or the existing = Hessian/Burlap integration). This should work with any JAX-RPC compliant = Web Service tool, including Axis and GLUE. =20 Regarding *exporting* Spring beans as Web Services, this is = unfortunately not possible with the current Web Service tools that I = know of: They all assume to create their service instances themselves in = their own dispatcher servlet, without a way to use existing = pre-configured instances or get invoked via a web MVC framework. So the = only way that I see is writing specific service classes that delegate to = Spring-managed business beans, as you seem to have tried too. =20 I've also added a ServiceEndpointSupport convenience base class to = org.springframework.remoting.jaxrpc, implementing ServiceLifecycle to = look up the Spring root web application context. This way, it's as = convenient as possible in the face of the JAX-RPC service implementation = model: Implementing Web Service wrappers for existing application = services is straightforward with it. =20 I'm not sure what a Spring application context specific to the = AxisServlet would be good for. What would you set up there? If it's = generic services, they belong to the root application context, IMO. And = what kind of Axis-supporting but not generic classes could be managed = there? Please share your thoughts :-) I recommend to *always* put = generic services in the root context: You can split the root context = definition into as many files as you like, via multiple paths as = "contextConfigLocation" context-param. =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Michael Young Gesendet: Do 18.12.2003 22:27 An: Spr...@li...; = Spr...@li... Betreff: [Springframework-developer] Spring and axis I wonder if anyone has integrated axis into Spring Framework, or if the gurus can shed some lights on this? We are building a web application with some UI components, but most of the interfaces are Web Services. We are using Spring and Axis. The problem is Axis needs its own servlet so that it knows which web services classes to call when a web services request comes in. So for the axis servlet (and my web services classes that get called it), I can only get hold of the application wide application context from Spring framework. I can't seem to have an axis servlet specific Spring application context. It seems one should be able to use Spring to handle web services requests as well. Spring can just delegate the requests to some controllers, and the controllers will invoke Axis? Any thoughts? Thanks! /Michael. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |