Basic Conception On SOA

本文详细解释了SOA(面向服务的架构)的概念及其在系统组成中的作用,深入探讨了WebService作为实现SOA的关键组件,包括其定义、工作原理、WSDL描述语言、SOAP标准以及客户端如何通过代理调用WebService。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. What is SOA?

SOA is the acronym(缩略语) for Service Oriented Architecture.

Basically, SOA states that every component of a system should be a service, and the system should be composed of several loosely-coupled services.

A service here means a unit of a program that serves a business process.

Loosely-coupled here means that these services should be independent of each other so that changing one of them should not affect any other services.

 

 

2. What is a web service?

 A web service is a software system designed to support interoperable machine-tomachine
interaction over a network.

A web service is typically hosted on a remote
machine (provider) and called by a client application (consumer) over a network.
After the provider of a web service publishes the service, the client can discover it
and invoke it.

The communications between a web service and a client application
use XML messages.

A web service is hosted within a web server and HTTP is used
as the transport protocol between the server and the client applications.

 

3. Web service WSDL

In order to be called by other applications, each web service has to supply a
description of itself so that other applications will know how to call it. This
description is provided in a language called WSDL.
WSDL stands for Web Services Description Language. It is an XML format that
defines and describes the functionalities of the web service, including the method
names, parameter names and types, and returning data types of the web service.
For a Microsoft ASMX web service, you can see the WSDL by adding
?WSDL to the end of the web service URL, say http://localhost/MyService/
MyService.asmx?WSDL.

 

4. Web service proxy

A client application calls a web service through a proxy. A web service proxy is
a stub class between a web service and a client. It is normally autogenerated by
a tool such as Visual Studio IDE, according to the WSDL of the web service. It can
be reused by any client application.

The proxy contains stub methods mimicking(模仿)
all the methods of the web service so that a client application can call each method
of the web service through these stub methods. It also contains other necessary
information required by the client to call the web service such as custom exceptions,
custom data and class types, and so on.
The address of the web service can be embedded within the proxy class, or it can
be placed inside a configuration file.

 

5. SOAP

There are many standards for web services—SOAP is one of them. SOAP was
originally an acronym for Simple Object Access Protocol and was designed by
Microsoft.

 

 

 

转载于:https://www.cnblogs.com/davidgu/archive/2012/03/07/2383122.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值