使用WCF添加SOA层 [英] Adding SOA layer using WCF

查看:74
本文介绍了使用WCF添加SOA层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用企业库数据访问块4.1
我当前的层是数据访问层[使用DAAB]
BusinessLogicLayer
BusinessObject [它只包含POCO对象,这个层是常见的在所有其他层中]
PResentationLayer

DAL只有talsk到BLL和BLL到表示层

现在我想用WCF注入一个SOA层,请让我帮忙在设计它


Kamran Shahid
高级软件工程师/分析师
(MCP,MCAD,MCSD.NET,MCTS,MCPD.net [web])

解决方案

Hi Kamran,

这是我的想法

这里的想法是将您的业务逻辑暴露为服务

表示层
您有一个表示层ASP.NET Web应用程序/基于Windows窗体的应用程序/ WPF。用户界面验证内置于此层并映射到特定客户端UI表单。

添加服务层。这将有助于将您可能具有的用户界面逻辑与业务层分离。

服务层
服务代理层将是应用程序的代理。 Service Agent组件管理服务的协议和安全性详细信息,因此客户端逻辑与底层WCF接口分离。服务代理与服务所需的体系结构进行交互(WCF服务层)服务合同,消息合同和数据合同,公开给客户端以与服务层接口。
还要确保编排发生从这一层开始。

查看将现有业务对象和逻辑识别为有意义的服务的方面。

无论如何,业务和数据层都在继续使用相同的

但再次确保遵循SOA原则使其真正成为SOA。

另请查看以下链接
http://msdn.microsoft .com / zh-CN / library / aa480534.aspx

希望这有助于
如果确实如此,请作为答案
阿扎








I am using Enterprise library data access block 4.1
My current layers are
DataAccessLayer      [using DAAB]
BusinessLogicLayer
BusinessObject         [its just contains POCO objects and this layer is common in all other layers]
PResentationLayer   

DAL only talsk to BLL and BLL to Presentation layer

Now I like to inject a SOA layer using WCF kindly let me help in architecting it


Kamran Shahid Senior Software Engineer/Analyst (MCP,MCAD,MCSD.NET,MCTS,MCPD.net[web])

解决方案

Hi Kamran,

Here are my thoughts

Here the idea would be to expose your business logic as services


Presentation Layer
You have an presentation layer ASP.NET web application/windows forms based application/WPF . User interface validation is built into this tier and mapped to the specific client UI form.

Add the service layer. This will help in decoupling user interface logic you might have from the business layer.

Service Layer
The Service Agent Layer will be the proxy to Application . Service Agent components manage the protocol and security details of the services, so the client logic is decoupled from the underlying WCF interfaces. The Service Agent interacts with the architecture where necessary for services
WCF Service Layer
Service contract, message contract and data contract exposed to clients to interface with the  Service layer.
Also ensure that the orchestration happens from this layer.

Look into the aspects of identifyin th existing business object and logic as meaningful service.


You have anyway the business and the data layer continue with the same

But again ensure that you follow the SOA tenets to make it really SOA.

Also check the below link
http://msdn.microsoft.com/en-us/library/aa480534.aspx

Hope this helps

Mark as answer if it does

Regards
Azha








这篇关于使用WCF添加SOA层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆