|
From: <jue...@we...> - 2004-07-19 19:02:48
|
Have a look at the org.springframework.remoting.jaxrpc package, and at =
the JPetStore sample app. The latter illustrates both exposure of a Web =
Service via Axis and accessing a Web Service in a demo client (via =
JaxRpcPortProxyFactoryBean).
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Rodrigo Urubatan Ferreira Jardim
Gesendet: Mo 19.07.2004 20:07
An: spr...@li...
Betreff: RES: [Springframework-developer] Web services integration with =
Spring
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=
Service"/>
<beanMapping qname=3D"jpetstore:Order" =
xmlns:jpetstore=3D"urn:JPetStore" =
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.Order"/>
<beanMapping qname=3D"jpetstore:LineItem" =
xmlns:jpetstore=3D"urn:JPetStore" =
languageSpecificType=3D"java:org.springframework.samples.jpetstore.domain=
.LineItem"/>
<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=
.Product"/>
</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
|