天天看点

xfire的webservice示例

1、首先将xfire需要的jar包上传的项目中。

[img]http://dl2.iteye.com/upload/attachment/0115/4354/c1244ea9-c7d4-3407-9a53-0208aaffe2df.png[/img]

项目的结构图:

[img]http://dl2.iteye.com/upload/attachment/0115/4359/36e86319-21de-3a9b-95c8-95368eea76d8.png[/img]

2、在web.xml文件中配置xfire信息

代码中配置了一个监听器,我使用监听器加载jdbc的信息保存在内存中。

3、定义接口并实现

接口的实现类

4、调用的类