I am starting to put together a system architecture document for a new project at my company. Basically we have a rather large business layer that follows the enterprise library data pattern, and i will need to access these data objects from a new silverlight application.
我开始为我公司的新项目整理系统架构文档。基本上我们有一个相当大的业务层,它遵循企业库数据模式,我需要从一个新的Silverlight应用程序访问这些数据对象。
My question is what is the best way to gain access to these objects in silverlight? My initial idea is using WCF, but i am unsure of how to best to reconstruct the objects in the client.
我的问题是在Silverlight中获取这些对象的最佳方法是什么?我最初的想法是使用WCF,但我不确定如何最好地重建客户端中的对象。
2 个解决方案
#1
The new .net standard is WCF (codename indigo)
新的.net标准是WCF(代号为indigo)
for performance You have the choice of a few transport protocols tcp (being the fastest), http, https, depending on your security/message encryption level. (there are a few more as well, netpipe's, etc)
性能您可以选择一些传输协议tcp(最快),http,https,具体取决于您的安全/消息加密级别。 (还有一些,netpipe的等等)
my typical endpoint/service layout with my projects, i have one endpoint for each version of the service, so if its version 1 then i end it with http://localhost:8080/YourEnterpriseName/Project/Version1/
我的项目的典型端点/服务布局,每个版本的服务都有一个端点,所以如果它的版本1,那么我用http:// localhost:8080 / YourEnterpriseName / Project / Version1 /结束它
I have also found that the response/request method is the best way of requesting data where you have a 2 classes (one request, one response) for every call you would need to make to the server. (using knowntype, i ca fill you in later)
我还发现响应/请求方法是请求数据的最佳方式,其中对于您需要对服务器进行的每个调用,您有2个类(一个请求,一个响应)。 (使用knowntype,我可以在以后填写你)
Also Shawn Wildermuth & Miguel Castro have done podcasts on dnrtv http://www.dnrtv.com/default.aspx?showNum=127 on Silverlight Data http://www.dnrtv.com/default.aspx?showNum=122 on Extreme WCF
Shawn Wildermuth和Miguel Castro也在dnrtv http://www.dnrtv.com/default.aspx?showNum=127上关于Silverlight数据http://www.dnrtv.com/default.aspx?showNum=122在Extreme上完成了播客WCF
#2
Check out this book, Data-Driven Services with Silverlight 2. I found this to be the best resource for figuring this out. What I did was create a lightweight WCF layer that retrieves objects from an existing DAL and then passes those objects back to the client.
看看这本书,Silverlight 2的数据驱动服务。我发现这是解决这个问题的最佳资源。我所做的是创建一个轻量级WCF层,从现有DAL中检索对象,然后将这些对象传递回客户端。
#1
The new .net standard is WCF (codename indigo)
新的.net标准是WCF(代号为indigo)
for performance You have the choice of a few transport protocols tcp (being the fastest), http, https, depending on your security/message encryption level. (there are a few more as well, netpipe's, etc)
性能您可以选择一些传输协议tcp(最快),http,https,具体取决于您的安全/消息加密级别。 (还有一些,netpipe的等等)
my typical endpoint/service layout with my projects, i have one endpoint for each version of the service, so if its version 1 then i end it with http://localhost:8080/YourEnterpriseName/Project/Version1/
我的项目的典型端点/服务布局,每个版本的服务都有一个端点,所以如果它的版本1,那么我用http:// localhost:8080 / YourEnterpriseName / Project / Version1 /结束它
I have also found that the response/request method is the best way of requesting data where you have a 2 classes (one request, one response) for every call you would need to make to the server. (using knowntype, i ca fill you in later)
我还发现响应/请求方法是请求数据的最佳方式,其中对于您需要对服务器进行的每个调用,您有2个类(一个请求,一个响应)。 (使用knowntype,我可以在以后填写你)
Also Shawn Wildermuth & Miguel Castro have done podcasts on dnrtv http://www.dnrtv.com/default.aspx?showNum=127 on Silverlight Data http://www.dnrtv.com/default.aspx?showNum=122 on Extreme WCF
Shawn Wildermuth和Miguel Castro也在dnrtv http://www.dnrtv.com/default.aspx?showNum=127上关于Silverlight数据http://www.dnrtv.com/default.aspx?showNum=122在Extreme上完成了播客WCF
#2
Check out this book, Data-Driven Services with Silverlight 2. I found this to be the best resource for figuring this out. What I did was create a lightweight WCF layer that retrieves objects from an existing DAL and then passes those objects back to the client.
看看这本书,Silverlight 2的数据驱动服务。我发现这是解决这个问题的最佳资源。我所做的是创建一个轻量级WCF层,从现有DAL中检索对象,然后将这些对象传递回客户端。