随笔分类 -  Web Service

Axis2
WebService相关术语
摘要:最近一直在和WebService打交道,看到大牛们谈起来侃侃而谈,而自己却被相关术语搞的晕头转向。所以下力气决定把和WebService有关的术语搞清楚。WebServiceWebService是让程序透明的调用网上发布的程序,不用考虑具体的实现细节。只要WebService公开了服务接口,远程客户端就可以调用服务,是基于HTTP协议的组件服务,是分散式应用程序的趋势。WSDLWSDL(Web Service Description Language)Web服务器描述语言是用XML文档来描述Web服务的标准,是Web服务的接口定义语言,由Ariba、Intel、IBM、MS等共同提出,通过WS 阅读全文

posted @ 2012-01-19 14:27 重阳真人 阅读(450) 评论(0) 推荐(0)

Axis2系列之对象类型的简单例子【3】
摘要:之所以说是简单例子,是因为类文件仍在data文件夹下,但包括了一维、二维数组及返回值是对象类型1.服务器端代码首先建一个beanpackage data;import java.io.Serializable;public class User implements Serializable { private static final long serialVersionUID = 1L; private int id; private String name; private String address; private String email; public int getId() 阅读全文

posted @ 2011-12-17 12:28 重阳真人 阅读(3346) 评论(0) 推荐(0)

Axis2系列之HelloAxis2【2】
摘要:1.编写Axis2服务器端代码import java.util.Random;/** * 服务器端代码就是放到Tomcat下的webapps中 * 注意方法的输入参数和返回值类型 * */public class HelloAxis2Service { public String getMessage(String name) { return name + " say: hello Axis2"; } public String getCount(int i) { return "你是第 " + new Random().nextInt(10000) 阅读全文

posted @ 2011-12-17 12:12 重阳真人 阅读(1389) 评论(0) 推荐(0)

导航