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


Reply via email to