摘要:首先感谢China MVP Team将这本书借阅与我,我已经很认真阅读了这本书,现在和大家分享我的一些小小的心得。 《Developing Service-Oriented AJAX Applications on the Microsoft Platform》AMAZON MSPRESS Code Download(7.68MB) Author Blog,是一本重点描述Microsoft ...
阅读全文
摘要:[有兴趣阅读本文的请从头至尾阅读,有兴趣帮助我解答疑问的请从尾至头读(红色部分),万分感谢!] 我们很容易理解在旧有编程模型中关于类实例的内容。设计模式中Singleton也就是在描述着档子事。但基于WCF并非适合于以上场景,Service与Client之间要保持良好的Instance模型则需要依靠很多其他机制。 Programming WCF Service Chapter4 对此进行了细致的描...
阅读全文
摘要:理清楚Host和Client的关系显得非常重要。 今天在VS2005上安装了WCF扩展,才发现原来2005上的扩展与VS2008的wcf模板不太一样,汗一个先…… 2005的WcfServiceLibrary: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighte...
阅读全文
摘要:当我们拿到一个服务地址的时候该如何知道这个服务所提供的服务呢?如果是您自己开发的Service,这一点或许不需要兴师动众,但是如果是别人开发的服务,那么了解服务中的Endpoint将显得格外重要,本文将利用对[WCF]继承中所构建的服务代码进行分析。 打开其程序代码添加一个ConsoleApplication应用程序,新建程序,代码如下: using System;using System...
阅读全文
摘要:在过去中,我们已经习惯了C#继承的各个特性,我们可以按如下的方式定义我们的继承关系: [ServiceContract] public interface ISimpleCalculator { //Other Members ...
阅读全文
摘要:WCF中的接口不允许有重载: 例如: namespace WcfServiceLibrary1 { // NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in App.config. [ServiceContract]...
阅读全文
摘要:Problem: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11...
阅读全文
摘要:[Programming WCF Services] If your service needs to interact with non-WCF clients. A.[yes]:(第一个分支向左(走[no])) 1.If the client is a legacy MSMQ client,choose the MsmqIntergrationBinding (that enables y...
阅读全文