Hey,
maybe this helps:
http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseXFire
The simplest way to get the xfire def's into your Spring config is to
import it:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<--------------------
<bean name="echoService" class="org.codehaus.xfire.spring.ServiceBean">
<property name="serviceBean" ref="echo"/>
<property name="serviceClass" value="org.codehaus.xfire.test.Echo"/>
<property name="inHandlers">
<list>
<ref bean="addressingHandler"/>
</list>
</property>
</bean>
Vinicius Carvalho schrieb:
Hello! I'm trying to get XFire working using SpringServiceBean. Well
I'm very frustated as the site is totally incomplete, following the
steps on the site results on errors. Here's what I've done so far:
bean name="echoService" class="org.codehaus.xfire.spring.ServiceBean">
<property name=
"serviceBean" ref="echo"/>
<property name="serviceClass"
value="org.codehaus.xfire.test.Echo"/>
<property name="inHandlers">
<list>
<ref bean="addressingHandler"/>
</list>
</property>
</bean>
<bean id="echo" class="org.codehaus.xfire.test.EchoImpl
"/>
<bean id="addressingHandler"
class="org.codehaus.xfire.addressing.AddressingInHandler"
/>
<web-app>
<servlet>
<servlet-name>XFireServlet</servlet-name>
<display-name>XFire Servlet</display-name>
<servlet-class>
org.codehaus.xfire.spring.XFireSpringServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
XFireServlet</servlet-name>
<url-pattern>/servlet/XFireServlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>XFireServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
</web-app>
I've replaced the echobean for one of my beans, but when deploying it
complains about not finding a bean named xfire. So I've tried the site
and there's no mention of it. So I've opened the XFireSpringServlet
class source and found that it looks for a xfire bean. I've tried to
configure it, but as theres no documentation on it, it's kinda hard,
I've lost a couple of hours trying to get this to work, it's very
frustating. Could someone point the right direction. And after I get
this working I'd like to contribute to the site (if anyone else could)
I think this lack of documentation a major flaw on the project.
Regards
--
cyber:con gmbh
Mika Göckel
Rathausallee 10
53757 Sankt Augustin
tel (+49)2241 / 9350 0
fax (+49)2241 / 9350 99
mob (+49) 172 / 279 2771
skype mika.goeckel
email [EMAIL PROTECTED]