读书人

xfire上面的services配制文件是如何用

发布时间: 2012-09-13 09:51:53 作者: rapoo

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> 

读书人网 >J2EE开发

热点推荐