首先,前提是已经导入了所有XFire需要的包。
一.单独使用XFire,不与Spring整合的情况下的配置
1.在web.xml中配置XFire
<servlet>
<servlet-name>XFireServlet</servlet-name>
<servlet-class>
<!-- 不整合spring时使用这个servlet-->
org.codehaus.xfire.transport.http.XFireConfigurableServlet</span>
</servlet-class>
</servlet>
2.在WEB-INF/META-INF目录下建立文件夹xfire,xfire目录下建立xfire配置文件services.xml,内容如下
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<service xmlns="http://xfire.codehaus.org/config/1.0"
xmlns:s="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/s