Web Service Software Factory 构架

         一、Web Service Software Factory 是微软在patterns & practices中提出的关于Web Service 的最佳实践
         二、首先来看看关于ASMX Service模板的解决方案框架图,有对于我们以后的学习有个全局上了解

Service interface layer. This layer defines the operations of a service, the messages required to interact with each operation, and the patterns by which these messages interact—these patterns are referred to as message exchange patterns. The service interface layer contains a service contract, which describes the behavior of a service and the messages required as the basis for interaction. The service interface layer also contains a service adapter, which is used to implement the service contract and to expose this functionality on a certain endpoint.
Business layer. This layer incorporates components that implement the business logic of the application. Simple services often require only a very simple business action, but services with more complex requirements may implement a Controller pattern or business rules for implementing service behavior. The business layer also includes business entities that are used to represent objects specific to a business domain. These entities can incorporate both state and behavior.
Resource access layer. This layer contains the logic necessary to access data. The layer also contains service agents, which isolate the idiosyncrasies of calling diverse services from your application and can provide additional services, such as basic mapping between the format of the data exposed by the service and the format your application requires. Components to address cross-cutting concerns. These components address functionality common to multiple layers of the architecture.

Data types. These are used to define the abstract data structures that form the basis for content within a message. These types are often reused by different operations of a service and even by different services.
 Message types. These are used to compose complex messages from existing data types and primitive types.
Service contracts. These specify the operations that services support and the messages required for interacting with each operation.
Service implementations. These are .NET Framework classes that implement service contracts.
服务执行。 这些是.NET执行服务合约的框架类。
Adapters. These use the EntityTranslator to translate between message types or data types and types required by the business actions before invoking the business action. 适配器.利用这些entitytranslator在所需的消息类型或数据类型的商业行为之前调用商业行为的类型之间的解释.
Entity translators. These transform between message or data types and business entities. The entity translator is an object that is tightly coupled to both the service interface and business layers, but at the same time provides loose coupling between them. This loose coupling prevents changes in one layer from forcing changes in the other layer.
Business actions. These organize business logic by procedures where each procedure handles a single request from the presentation layer.
BusinessEntity. This is a class used to represent a domain model entity within the business layer of the application.
Repository. This is an intermediate object used to support interactions between business logic and the data access logic. 库.这是一个中间对象用来支持互动业务逻辑和数据存取逻辑.

posted on 2006-10-23 11:04  jiekengxu  阅读(2299)  评论(0编辑  收藏  举报