您的位置:首页 > 编程语言 > Java开发

MyEclipse下开发Web Service(2) 创建Web Service

2007-05-21 15:23 295 查看

MyEclipse下开发Web Service

[收藏此页] [打印]

作者:IT168 IT168 gmplayer

内容导航:
创建Web Service

第1页: 概述,创建工程 第2页: 创建Web Service 第3页: 部署Web Service Project 第4页: 测试

init_Nav();

IT168技术文档
4.在向导的Page-3中选择类库添加到工程的构建路径中,其中XFire Core Library是需要的,如果要在工程中开发一个客户端应用, XFire HTTP Client Libraries也是需要的.



Figure-4: Selecting XFire libraries to add to new web service project buildpath

5选择Finish完成Web Service工程的创建过程
Figure-5,显示了新创建的HelloWorld Web Service工程的组织结构,Web Service 工程和一个标准的MyEclipse Web工程很相似. XFire Web Service配置元素如图红色区域显示:



Figure-5: Web services artifacts of a new web service project

二. 创建Web Service-Code-first Strategy
在这部分将用MyEclipse Web Service Wizard并通过使用Code-first Strategy来创建一个HelloWorldService示例.

1. 执行MyEclipse Web Service Wizard,有两种方法来执行MyEclipse Web Service Wizard
方法1.从MyEclipse perspective toolbar中来执行向导
在打开的Web Service Wizard上的workbench上来选择新Web Service按钮
方法2.从workbench menubar执行向导
1. 从workbench menubar选择: File>New>Other>MyEclipse>Web Service



Figure-6: Launching Web Service Wizard

2. 在Page-1选择HelloWorld 工程并选择Create web service from Java bean
3. 选择Next到Page-2



Figure-7: Page-1 of new web service wizard

1



1 2 3 4

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: