<?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>
如这个  解释下```

解决方案 »

  1.   

    <serviceClass>:服务端的实现类
    <wsdlURL>:访问url
    <serviceFactory>:服务工厂,一般来说这个是自动生成的,不用去改动。
      

  2.   

    xfire 可以于Spring 很好的集成,楼主如果只用xfire的话,serivces.xml是定义要发布的Web Service,放在/WEB-INF/META-INF/xfire/这个目录下边<?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>service:  就是要耍发布的一个web service
    name:从外边访问这个web service的名称,
    serviceClass:提供这个web service的接口
    implementationClass:实现接口的类。
    如果您用Sping 2.0,将“ xmlns="http://xfire.codehaus.org/config/1.0"”写在<service>节点中:
    <service xmlns="http://xfire.codehaus.org/config/1.0">
      

  3.   

    一个新手请教
    使用xfire导入webservice时使用localhost:88导入wsdl生成相关的函数进行调用,都OK
    在部署时,services.xml文件的wsdlUrl改为 IP:8091,xfire调用webservice不成功,但有源码中使用固定的wsdlurl(IP:8091)调用成功,
    请问xfire如何部署?
    或者如何读取services.xml文件的wsdlUrl,