View Full Version : Web services with XFire
teix
Feb 17th, 2006, 04:03 AM
Hi!
I'm new to Spring and web services. I've already tryed Axis a little bit and now I'd like to take a look into Spring-XFire web services. I've read Spring and Codehaus docs about the topic, but I would like to see a small example. Would any of you post one?
Kind regards
Kees de Kooter
Feb 17th, 2006, 04:27 AM
XFire + Spring make webservices very easy. You basically expose selected methods as a webservice. Here is the example for the xfire servlet:
<beans>
<bean id="handlerMapping"
class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="urlMap">
<map>
<entry key="/InvoicePrintNotificationService">
<ref bean="invoicePrintNotificationServiceExporter"/>
</entry>
</map>
</property>
</bean>
<bean name="invoicePrintNotificationServiceExporter"
class="org.codehaus.xfire.spring.XFireExporter">
<property name="service">
<ref bean="invoicePrintNotificationService"/>
</property>
<property name="serviceInterface">
<value>com.bop.aeos.services.InvoicePrintNotificationServ ice</value>
</property>
<property name="serviceFactory">
<ref bean="xfire.serviceFactory"/>
</property>
<property name="xfire">
<ref bean="xfire"/>
</property>
</bean>
<bean id="invoicePrintNotificationService"
class="com.bop.aeos.services.InvoicePrintNotificationServ iceImpl">
<property name="invoiceDao">
<ref bean="invoiceDao"/>
</property>
</bean>
</beans>
cmaxwell76
Mar 28th, 2006, 11:20 AM
Has anyone been able to make an asychronous service with XFire and Spring? If anyone has any examples, please post because the documentation is non-existant for ws-addressing with XFire and Spring.
gmoh
Mar 28th, 2006, 04:54 PM
for those who have implemented web services using spring + xfire, could you share your experience, what do you like about it and what don't you like, etc.
thanks
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.