1) new --> other --输入WSDL --->选取WSDL --->next-->更改 ManageStudentService.wsdl-->next -->更改http://service.computer.com/ManageStudentService/ -->finish
2) 更改NewOperation 为CreateStudent;更改input\output 参数分别为CreateStudentRequestMsg;CreateStudentResponseMsg,类型为:Element
3) 为CreateStudentRequestMsg创建CreateStudentRequest对象,类型为Complex Type;为CreateStudentRequest对象创建Header和body对象
类型分别为 RequestHeader和RequestBody
4)为RequestHeader 创建字段,分别为 version string; interFrom String;
5)为RequestBody 创建字段,分别为 name string; sex String; age String;
6) 为CreateStudentResponseMsg创建CreateStudentResponse对象,类型为Complex Type;为CreateStudentResponse对象创建Header 类型为RequestHeader.
备注:右键CreateStudentResponse-->add Element-->head-->右键head--->set type-->new-->complex tye -->RequestHeader
7 ) 为RequestHeader 创建字段,分别为 resultCode string; resultMsg String;
8 ) 保存
Eclipse创建WSDL+AXIS2 (二)
最新推荐文章于 2024-10-25 13:02:37 发布
1、使用MyEclipse创建WSDL