|
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
|