WCF Web Programming Model Documentation

Conceptual Overviews: Web Programming Model AJAX and JSON WCF Syndication (Atom and RSS) Partial Trust Class Library Reference (not exhaustive): System.ServiceModel.Web Namespace System.ServiceModel.Syndication Namespace System.Runtime.Serialization.Json Namespace SyndicationFeed Class SyndicationItem Class WebOperationContext Class WebServiceHost Class WebGetAttribute Class WebInvokeAttribute Class WebHttpBehavior Class WebScriptEnablingBehavior Class DataContractJsonSerializer Class Configuration Schema: enableWebScript webHttp webHttpBinding   Source: WCF Web Programming Model…


ASMX Proxy 比WCF Proxy要简单?

ASMX Proxy没有ServiceContract和Channel stack的概念,ASMX直接使用SoapHttpClientProtocol,SoapHttpClientProtocol则完全是客户端的技术,其是对System.Net的HttpWebRequest的封装。而WCF proxy内部则是一个.NET Remoting的级别的地传输接口,最主要是是因为ASMX是一个“horizontal”的编程模型,更多时支持和实现Web Service的协议,而WCF是一个“Vertical” 的编程模型而,则要考虑和支持用户在客户端可以像在服务器端一样的操作和编程模型。 所以的ASMX Proxy的速度要快,在.NET 3.5中,对WCF优化后,BasicHttpBinding,类似和接近ASMX Proxy的性能,并且Wenlong也说,.NET 3.0 SP也就包含在.NET 3.5中了。 · Reuse the same proxy · Use proxy that enables caching · Disabling caching · Proxy/Channel pooling   原文详见:Performance Improvement for WCF Client Proxy Creation in .NET 3.5 and Best Practices http://blogs.msdn.com/wenlong/archive/2007/10/27/performance-improvement-of-wcf-client-proxy-creation-and-best-practices.aspx


WCF Messaging Fundamentals 的学习笔记

读了Aaron Skonnard MSDN杂志的文章,做一些记录,文笔很不错,将WCF的许多概念讲得简单明了,看完了,让人感觉意犹未尽的感觉   1. 建立一个MTOM的消息   // write to MTOM representationFileStream custMtomStream = new FileStream(“customer.mtom”, FileMode.Create);using (XmlWriter xw = XmlDictionaryWriter.CreateMtomWriter(custMtomStream, Encoding.UTF8, 1024, “text/xml”)){doc.WriteTo(xw);} // read from MTOM representationXmlDocument doc = new XmlDocument();FileStream custMtomStream = new FileStream(    “customer.mtom”, FileMode.Open);using (XmlReader xr = XmlDictionaryReader.CreateMtomReader(    custMtomStream, Encoding.UTF8, XmlDictionaryReaderQuotas.Max)){    doc.Load(xr);}   // write to text (XML 1.0) representationdoc.Save(“customer.xml”);…

1

Indigo Beta1 -> WCF Beta2

Omri Gazitt’s 的Weblog 指出了Indigo Beta1 -> WCF Beta2 的一些改动和变化,http://www.gazitt.com/Blog/PermaLink,guid,1ff8c791-2c1c-4192-9614-3cf79e90867d.aspx摘要如下: 对象模型/API方面ServiceHost<T> -> ServiceHost ServiceSite -> InstanceContext InstanceModeAttribute -> InstanceContextModeAttribute InstanceModeAttribute.Singleton -> InstanceContextModeAttribute.Singletypeof(ChannelFactory.Description.Address) -> EndpointAddress (from Uri) IProxyChannel -> IClientChannel ProxyBase -> ClientBase 配置方面@bindingSectionName on <endpoint> -> @binding@contractType on <endpoint> -> @contract<netProfileTcpBinding> -> <netTcpBinding><wsProfileBinding> -> <wsHttpBinding><basicProfileBinding> -> <basicHttpBinding>@serviceType on <service> -> @typeAlso, all the customPeerResolver stuff goes…


Indigo – A First Look

Managing the Software Lifecycle http://www.ftponline.com/reports/vslivesf/2005/sudan/Ajay SudanProduct Manager for Visual Studio Team System Developer Division at Microsoft Introducing Indigo: An Early LookDavid Chappell Chappell & Associateshttp://msdn.microsoft.com/longhorn/default.aspx?pull=/library/en-us/dnlong/html/introindigov1-0.asp Indigo “Hello World” Clemens Vastershttp://staff.newtelligence.net/clemensv/PermaLink.aspx?guid=d678ab54-9d39-4fc9-82c0-4e03382d457f

1