使用 Eclipse 的 Axis1.4 插件开发 Web Service 及客户端
所使用的 Eclipse 版本 Eclipse JEE 3.3,JDK 版本 1.5,Tomcat6.0。在这个
Eclipse 版本里已集成了 Axis1.4 的插件,无需安装任何插件就可以开发 Web
Service 应用程序了,利用图形化的向导可以开发 Web Service 服务端和客户端
程序。
建立一个项目 AxisServerDemo,写一个简单的类:
package demo.axis;
public class User
{
public String sayHello(String userName)
{
return "hello " + userName;
}
}
下面用 Axis 向导把这个 bean 发布为 Web Service:
1、选择 File|New|Other,选择新建 Web Service。