Eclipse中开发webservice

eclipse开发webservie                                         java

1.下载axis2相关架包----war,bin是必须的; web

   axis2的eclipse插件(2个)-http://apache.dataguru.cn/axis/axis2/java/core/ apache

org.apache.axis2.eclipse.codegen.plugin_0.0.0.SNAPSHOT.jar        org.apache.axis2.eclipse.service.plugin_0.0.0.SNAPSHOT.jar


2.安装eclipse的axis2插件 服务器

    将a中的两个jar文件放入eclipse路径下面的plugins文件夹下面,重启eclipse便可。

    成功标志-----new,出现Axis2 Wizards选项。 eclipse


3.在eclipse中配置axis2的运行环境 插件

    Windows---->preferences---->Web Service---->Axis2 Preferences,选中Axis2 Runtime将a中下载的
    war(事先解压)路径选中便可。


4.编写服务器上面的web项目,而后建立webservice 注意: code

    Service implementation: 须要提供出来的类----web项目的src目录下面
    Web service runtime: Apache Axis2
    建立完毕以后,在地址栏中输入 http://localhost:8080/项目名称 获得服务的wsdl地址,如:
    http://localhost:8080/secondWebService/services/ShowDate?wsdl
    这个地址,下面的客户端须要用到。


5.建立webservice client ip

    注意:
    service definition:填写d步骤中获得的地址:如 http://localhost:8080/secondWebService/services/ShowDate?wsdl
    右侧滑条滑到Test client处;

    Web service runtime: Apache Axis2 开发

相关文章
相关标签/搜索