axis 开发webservice

eclipse3以上的版本,集成了很多流行功能开发框架,比如axis(开发webservice的中间件)

1.File->new->Dynamic web  project

2.新建要发布的类方法(实现了接口).

5.右键类名->Web services ->Create webservice->继续默认。。。

 wsdl就已经生成,在项目WebContent下生成了一个wsdl文件夹,下面有wsdl文件。WEB-INF下新增server-config.wsdd文件,同时对web.xml进行了修改.

启动servser,浏览器中访问:http://localhost:8088/demo/services/WebServiceImpl?wsdl

如能看到相关的xml内容显示

表明服务发布成功.

猜你喜欢

转载自zengshaotao.iteye.com/blog/1895278