网站开发开发优势,wordpress怎么做伪静态页面,营销策划书案例,成都市房产透明网官网原文:http://www.cnblogs.com/jiabao/archive/2007/12/04/982534.html在.net3.0出现以前我们进行分布式开发式有两个选择一个是webservice#xff0c;另一个是remoting#xff1b;在早期的项目中#xff0c;比较喜欢remoting#xff0c;因为remoting可控性好#xff0c;也…原文:http://www.cnblogs.com/jiabao/archive/2007/12/04/982534.html 在.net3.0出现以前我们进行分布式开发式有两个选择一个是webservice另一个是remoting在早期的项目中比较喜欢remoting因为remoting可控性好也好部署不需要依赖其他的宿主环境。 今年的做的项目大部分都是webservice的因为在这几年remoting过程中遇到了几个问题比较典型的就是remoting的宿主程序容易出现异常并且这个异常很难捕捉一旦宿主程序的压力过大就会出现这个情况。比较脸红的是这个问题到现在也没有发现是怎么产生的也就无从说解决了。凡是涉及到分布式部署的项目都会有数据的传输问题要对需要传输的数据进行压缩。较早的项目中都是将dataset压缩为流对象经过序列化的后进行传递的压缩比1/4的样子。.net3.0的出现极大的方便了分布式项目的开发部署在学习wcf时候一直在寻找在wcf构架下的数据压缩方案就将搜集到一些文章汇总在这里(这方面的东西少的可怜)供大家参考。个人比较喜欢 WS-Compression for WCF 感觉思路更清晰ms的文章Custom Message Encoder: Compression Encoderhttp://msdn2.microsoft.com/en-us/library/ms751458.aspx例子在TechnologySamples、Extensibility、Channels、MessageEncoder、Compression目录中msdn社区的文章Serialize Datasets as binary (not XML) in WCFhttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID1618046SiteID1pageid0#1648392http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID1520385SiteID1这里面Pablo Cibraro 的回复非常清晰俺就摘录在这里了 There are basically three ways to implement compression in WCF. 1. At transport level using a message encoder which compress all the data throughout the entire channel (From the client to the service). There is a sample of this in the WCF SDK, [SDK Folder]TechnologySamples/Extensibility/MessageEncoder/Compression 2. At message level, adding some metadata to the soap message (Soap headers) and compressing the soap body. This approach can use a WCF binding or a MessageInspector Behavior to modify the soap messages. You can find an example here, http://weblogs.asp.net/cibrax/archive/2006/03/29/WS_2D00_Compression-for-WCF.aspx 3. Only for the Http transport, you can use the Http Compression capability. I havent seen any implementation of this technique so far. I hope this can help you Regards, Pablo. WS-Compression for WCFhttp://weblogs.asp.net/cibrax/archive/2006/03/29/441398.aspx继续补充中...--畅所欲言随心而谈--本博客文章全部原创转载请注明出处谢谢版权所有 jiabao.cnblogs.com 转载请联系