malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?

2012年7月6日

DataContract KnownType---Data Transfer in Service Contracts

摘要: TheKnownTypeAttributeclass allows you to specify, in advance, the types that should be included for consideration during deserialization. For a working example, see theKnown Typesexample.Normally, when passing parameters and return values between a client and a service, both endpoints share all of t 阅读全文

posted @ 2012-07-06 22:25 malaikuangren 阅读(558) 评论(0) 推荐(0)
Using the Message Class---Data Transfer in Service Contracts

摘要: TheMessageclass is fundamental to Windows Communication Foundation (WCF). All communication between clients and services ultimately results inMessageinstances being sent and received.You would not usually interact with theMessageclass directly. Instead, WCF service model constructs, such as data con 阅读全文

posted @ 2012-07-06 17:51 malaikuangren 阅读(544) 评论(0) 推荐(0)
Using XmlSerializer (using Attributes like XmlElement , XmlAttribute etc )--- Data Transfer in Service Contracts

摘要: Windows Communication Foundation (WCF) can use two different serialization technologies to turn the data in your application into XML that is transmitted between clients and services, a process called serialization. (DataContract and XML Serializer)By default WCF uses theDataContractSerializerclass 阅读全文

posted @ 2012-07-06 17:43 malaikuangren 阅读(1090) 评论(0) 推荐(0)
Data Transfer in Service Contracts

摘要: DataContract is the default serialization programming model for WCF. However WCF supports more than just the types marked wth DataContract attribute. It supports serialization of the following kinds of types in the default mode.CLRbuilt-in typesByte array,DateTime,TimeSpan,GUID,Uri,XmlQualifiedName, 阅读全文

posted @ 2012-07-06 04:40 malaikuangren 阅读(174) 评论(0) 推荐(0)