Webservce服务端的开发和客户端调用.doc

  1. 1、本文档共8页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Webservce服务端的开发和客户端调用

Webservice服务端的开发和客户端调用 1 初始化 2 1.1 准备一个web项目 2 1.2 设置Axis2环境 2 2 接口的发布 3 2.1 建立WebService 项目 3 2.2 WebService配置 3 2.2.1 确认要发布的接口的类,选择二级模式(Assemble service)创建 3 2.2.2 选择运行Apache Axis2 运行环境 4 2.3 将项目打包为EAR 4 2.4 在Weblogic 服务器上面,添加项目并运行服务器 4 2.5 输入url地址,可见发布了的接口 4 3 使用soulUI 对接口进行测试 5 3.1 测试接口 5 4 客户端项目 6 4.1 首先建立一个web 项目 6 4.2 建立WebService 项目 6 4.3 Serverice 定义 7 4.4 编写客户端程序,测试运行 8 初始化 准备一个web项目 设置Axis2环境 接口的发布 建立WebService 项目 先选择一个接口实现类 ( new ( Web Services ( Web Service WebService配置 确认要发布的接口的类,选择二级模式(Assemble service)创建 选择运行Apache Axis2 运行环境 Configuration ( Web service runtime:Apache Axis ( Choose Web service runtime first ( Apache Axis2 将项目打包为EAR 在Weblogic 服务器上面,添加项目并运行服务器 输入url地址,可见发布了的接口 使用soulUI 对接口进行测试 建立一个SoulUI Project File ( New SoulUI Project 把WSDL的URL地址复制到Initial WSDL/WADL地址栏上, 测试接口 打开自动生成的测试项目,点击XMl,点击运行,可以看到接口返回的数据,要注意的是,soapUI不支持List,可以把List转换成对象数组再输出 客户端项目 首先建立一个web 项目 建立WebService 项目 new ( Web Services ( Web Service Client Serverice 定义 从之前发布Service 的浏览界面的地址栏中获取WSDL地址 然后,粘帖到Web service 定义WSDL的URI路径上 实际上就是接口的地址加上”?wsdl” 同样的,选择二级,Assemble client 在Apache Axis2 创建 编写客户端程序,测试运行 ships of 72 and a half the Harbour, like room Tao Yuan. Triangle at the cemetery (Shanghai, Nanjing and Hangzhou), and the small triangle (Soviet Union, Ka, Lake) where the hinterland, at the junction of Jiangsu, East, South and west sides respectively, and jiaxing in Zhejiang Province, Wuzhen, Nanxun town and connected. After the liberation, 17 townships, Yan Tomb, provided there is a town, District Administration had in town. A unique geographical environment, has become the militarys battleground. On November 5, 1937, Japan 10th army landed in Hangzhou Bay, North Bay, on November 12, Shanghai fell. Part of the Japanese army to the North along the flood of jiaxing railway, Jiujiang road, invaded Wu Jiang. On November 18, the Japanese army occupied Wujiang city. Stationed in Wujiangs ships of 72 and a h

文档评论(0)

gix469 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档