1. 创建一个WebService项目
2. 由于MyEclipse没有自动给你添加需要的类库,因此需要手动添加
[img]http://dl2.iteye.com/upload/attachment/0088/1216/3a07dffa-2a82-333f-802a-a9447f180e63.png[/img]
3. 发布WebService
[img]http://dl2.iteye.com/upload/attachment/0088/1222/32c1e94c-f166-312b-bee8-b31bd57f1627.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1224/b1fde0eb-5df1-35eb-95b7-2702852358f0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1226/adeca83b-8d31-300f-8872-a3fc03d6d9e1.png[/img]
4. 创建测试客户端
新建一个Java项目
然后添加服务的引用
[img]http://dl2.iteye.com/upload/attachment/0088/1230/a369bede-a662-3be9-aeef-baa0f17c3d83.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1232/c817fc16-9b53-397f-8a7a-aa4d8d1e54c0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1234/3c0fa9d8-6d6f-3015-b75f-122c8a48e2d2.png[/img]
5.编写测试代码
[img]http://dl2.iteye.com/upload/attachment/0088/1236/44a4106b-9da2-34cd-8214-92a1bcdbee1b.png[/img]
2. 由于MyEclipse没有自动给你添加需要的类库,因此需要手动添加
[img]http://dl2.iteye.com/upload/attachment/0088/1216/3a07dffa-2a82-333f-802a-a9447f180e63.png[/img]
3. 发布WebService
[img]http://dl2.iteye.com/upload/attachment/0088/1222/32c1e94c-f166-312b-bee8-b31bd57f1627.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1224/b1fde0eb-5df1-35eb-95b7-2702852358f0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1226/adeca83b-8d31-300f-8872-a3fc03d6d9e1.png[/img]
4. 创建测试客户端
新建一个Java项目
然后添加服务的引用
[img]http://dl2.iteye.com/upload/attachment/0088/1230/a369bede-a662-3be9-aeef-baa0f17c3d83.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1232/c817fc16-9b53-397f-8a7a-aa4d8d1e54c0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0088/1234/3c0fa9d8-6d6f-3015-b75f-122c8a48e2d2.png[/img]
5.编写测试代码
[img]http://dl2.iteye.com/upload/attachment/0088/1236/44a4106b-9da2-34cd-8214-92a1bcdbee1b.png[/img]