一、Web Service Software Factory 是微软在patterns & practices中提出的关于Web Service 的最佳实践
二、首先来看看关于ASMX Service模板的解决方案框架图,有对于我们以后的学习有个全局上了解
因为我的e文不是很好,所以我把原文也发了上来,以免误人子弟
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.
资源接入层.这一层包含的数据获取所需的逻辑.该层也包含服务代理孤立的特质,从你的应用和服务多样化要求提供额外服务,测绘等基本数据格式之间的接触和服务形式的申请.关切组件处理跨领域的.
三、服务工厂的核心