SOA

Category: /knowledge /development
Tags: development

Web service: business logic is accessible through internet protocols such as HTTP.

characteristics:

  • XML-based
  • loosely coupled
  • coarse-grained: access the right amount of business logic
  • ability to be asynchronous
  • support RPC
  • support document exchange

Each web service is made up of two parts:

  1. Service, the implementation
  2. Service description, the interface

SOA is based upon the interactions among three roles:

  1. a provider
  2. a registry (or broker)
  3. a requestor

SOA concepts

SOAP —— Simple Object access Protocol (SOAP) provides a standard packaging structure for transporting XML documents over network protocols, including SMTP, HTTP, and FTP. It also defines encoding and binding standards for encoding non-XML RPC invocations in XML for transport.

WSDL

Web Service Description Language (WSDL)

WSDL describes the interface of a web service in a standardized way. WSDL standardizes how a web service represents the input and output parameters of an invocation externally, the function’s structure, the nature of the invocation (in only, in/out, etc.), and the service’s protocol binding.

UDDI

Universal Description, Discovery, and Integration (UDDI)

UDDI provides a worldwide registry of web services for advertisement, discovery, and integration purposes. Business analysts and technologists use UDDI to discover available web services by searching for names, identifiers, categories, or the specifications implemented by the web service.

(better to have a picture here)

The relationship between these pieces (SOAP, WSDL, and UDDI) can be described as follows: an application acting in the role of a web services client needs to locate another application or a piece of business logic located somewhere on the network. The client queries a UDDI registry for the service either by name, category, identifier, or specification supported. Once located, the client obtains information about the location of a WSDL document from the UDDI registry. The WSDL document contains information about how to contact the web service and the format of request messages in XML schema. The client creates a SOAP message in accordance with the XML schema found in the WSDL and sends a request to the host (where the service is).

Implementation

  • Axis: Apache Axis is an implementation of the SOAP (“Simple Object Access Protocol”)

讨论

提示

  • 如果看不到讨论部分, 请暂时关掉adblock in Firefox/Chrome
  • 本网站使用Javascript实现评论功能, 此处外链对提高您的网站PR没有帮助. (潜台词: 请不要灌水, 谢谢)