日期:2014-05-19  浏览次数:20734 次

xfire下面的services配制文件是怎么用的
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xfire.codehaus.org/config/1.0">
  <service>
  <serviceClass>hpd_incidentinterface_create_ws.HPD_IncidentInterface_Create_WSServiceImpl</serviceClass>
  <wsdlURL>http://192.168.10.24/arsys/WSDL/public/itsm-test01/HPD_IncidentInterface_Create_WS</wsdlURL>
  <serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory</serviceFactory>
  </service>
</beans>


如这个 解释下```

------解决方案--------------------
<serviceClass>:服务端的实现类
<wsdlURL>:访问url
<serviceFactory>:服务工厂,一般来说这个是自动生成的,不用去改动。
------解决方案--------------------
xfire 可以于Spring 很好的集成,楼主如果只用xfire的话,serivces.xml是定义要发布的Web Service,放在/WEB-INF/META-INF/xfire/这个目录下边
Java code

<?xml version="1.0" encoding="UTF-8"?>
<beans  xmlns="http://xfire.codehaus.org/config/1.0">
  <service>
    <name>listService</name>      
    <serviceClass>com.service.ListService</serviceClass>
    <implementationClass>com.service.ListServiceImpl</implementationClass>
  </service>
</beans>