Reply to comment

Exposing a Spring POJO as a Web Service using XFire

In your web.xml, add the following configuration:

<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>
    classpath:org/codehaus/xfire/spring/xfire.xml
  </param-value>
</context-param>
<listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

Then, add the following to your Spring context file..

<bean class="org.codehaus.xfire.spring.remoting.XFireExporter">
  <property name="serviceFactory" ref="xfire.serviceFactory" />
  <property name="xfire" ref="xfire" />
  <property name="serviceBean" ref="serviceImpl" />
  <property name="serviceClass" value="com.samples.interface.Service" />
</bean>

Reply

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.