---
title: "3.WebService实战"
author: "bolan392"
date: "2011-11-12T18:45:06Z"
tags: []
categories: ["企业架构"]
slug: "3-webservice"
draft: false
lastmod: "2011-11-12T18:45:06Z"
id: 1255023
url: "https://bolan392.iteye.com/blog/1255023"
---

1.WebService模型

 

   WebService是解决应用程序之间相互通信的一项技术，它描述一系列操作的接口，它使用规范的、标准的XML描述接口。描述中包括了消息格式、传输协议和服务位置。在对外的接口中隐藏了服务实现的细节。

 

2.Webservice模型中的角色

 

   \*服务提供者

   \*服务请求者

   \*服务注册中心

 

3.怎样实现WebService

 

   Axis2是Apache推出的支持WebService模型的工具软件，Tuscany Java SCA实际也是使用Axis2来将构件对外发布为WebService的。利用Axis2开发出的Webservice最终表现为一个.aar文件。

 

   Axis2自带了Servlet容器来支持Webservice，直接启动Axis2即可发布Webservice。