|
From: Nimish P. <ni...@gm...> - 2004-07-19 17:23:34
|
Hello, We have been using Spring for some projects for past 3 months successfully. We are very impressed with the ease of use and flexibility that Spring provides. Our current requirement is to have a web service implemented through Spring. We feel that this would be a better solution than using something like Axis directly. This way, we can actually choose a different implementation without touching majority of the code. Is web services one of the near future additions in Spring's road map? If not, we would like to help design a set of web service interfaces and at least one support package - possibly using Axis. I felt it is better to get some input from the contributors before we actually start work in this direction. Best regards, -- Nimish |
|
From: Dmitriy K. <dko...@ru...> - 2004-07-19 17:40:31
|
Nimish, Spring currently provides web-services type of remote access with support for several different protocols e.g. Caucho's Hessian and Burlap, RMI, JAX-RPC (Axis). http://www.springframework.org/docs/reference/remoting.html Regards, Dmitriy. Nimish Pachapurkar wrote: >Hello, > >We have been using Spring for some projects for past 3 months >successfully. We are very impressed with the ease of use and >flexibility that Spring provides. Our current requirement is to have a >web service implemented through Spring. We feel that this would be a >better solution than using something like Axis directly. This way, we >can actually choose a different implementation without touching >majority of the code. > >Is web services one of the near future additions in Spring's road map? >If not, we would like to help design a set of web service interfaces >and at least one support package - possibly using Axis. I felt it is >better to get some input from the contributors before we actually >start work in this direction. > >Best regards, > > |
|
From: Tim C. <tc...@ta...> - 2004-07-19 18:03:42
|
I'm kind of curious about this because I've implemented a webservice using Spring. I'm not sure what that actually means though since the way that I've done it (using JBoss.net/Axis) Is to just deploy a Session Bean along with a WSR that has the webservice definition. So when I said that I am using webservice with Spring it's just that my Session bean is using Spring to Dependency Inject the stuff it needs. (DAOs etc) Not really using Spring specifically for Web Services. After all, Axis does not require you're bean to have any webservice methods in it. Now if you're talking about the client side code, It would be nice for Spring to allow dependency injection of a Web Service. Which I don't know if it currently does. I am doing it in a different way (which is bad if Spring DOES have a way to handle web services already ;) I have a Bean that is using a static implementation method that returns back the actual Web Service. Example is: <bean id="nppDelegate" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetClass"><value>com.xxx.whatever.MyWebServiceFactory</value></property> <property name="targetMethod"><value>getWebServiceInstanceOrWhatever</value></property> </bean> That allows me to still use Spring's dependency injection with a WebService bean. -Tim Nimish Pachapurkar wrote: >Hello, > >We have been using Spring for some projects for past 3 months >successfully. We are very impressed with the ease of use and >flexibility that Spring provides. Our current requirement is to have a >web service implemented through Spring. We feel that this would be a >better solution than using something like Axis directly. This way, we >can actually choose a different implementation without touching >majority of the code. > >Is web services one of the near future additions in Spring's road map? >If not, we would like to help design a set of web service interfaces >and at least one support package - possibly using Axis. I felt it is >better to get some input from the contributors before we actually >start work in this direction. > >Best regards, > > |
|
From: Rodrigo U. F. J. <rod...@us...> - 2004-07-19 18:07:17
|
You can already do this,
Just copy the AxisServlet declaration to your web.xml
=20
And declare the services you want to export as following:
<service name=3D"OrderService" provider=3D"java:RPC">
<parameter name=3D"allowedMethods" value=3D"*"/>
<parameter name=3D"className"
value=3D"org.springframework.samples.jpetstore.service.server.JaxRpcOrder=
Servi
ce"/>
<beanMapping qname=3D"jpetstore:Order" =
xmlns:jpetstore=3D"urn:JPetStore"
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.Orde
r"/>
<beanMapping qname=3D"jpetstore:LineItem"
xmlns:jpetstore=3D"urn:JPetStore"
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.Line
Item"/>
<beanMapping qname=3D"jpetstore:Item" =
xmlns:jpetstore=3D"urn:JPetStore"
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.Item
"/>
<beanMapping qname=3D"jpetstore:Product" =
xmlns:jpetstore=3D"urn:JPetStore"
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.Prod
uct"/>
</service>
=20
=20
where JaxRpcOrderService is a class that extends ServletEndpointSupport,
this is not like spring is exposing your beans automatically, but you =
have
access to your ApplicationContext from inside your Web Service what is =
cool
enough for me :-)
=20
=20
I hope that this help you
=20
-----Mensagem original-----
De: spr...@li...
[mailto:spr...@li...] Em nome =
de
Nimish Pachapurkar
Enviada em: segunda-feira, 19 de julho de 2004 14:24
Para: spr...@li...
Assunto: [Springframework-developer] Web services integration with =
Spring
=20
Hello,
=20
We have been using Spring for some projects for past 3 months
successfully. We are very impressed with the ease of use and
flexibility that Spring provides. Our current requirement is to have a
web service implemented through Spring. We feel that this would be a
better solution than using something like Axis directly. This way, we
can actually choose a different implementation without touching
majority of the code.
=20
Is web services one of the near future additions in Spring's road map?
If not, we would like to help design a set of web service interfaces
and at least one support package - possibly using Axis. I felt it is
better to get some input from the contributors before we actually
start work in this direction.
=20
Best regards,
--=20
Nimish
=20
=20
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|