What is Channel in WCF?

In Service oriented architecture there are two parties involved, Server and Client .Server and client communicate to each other via Messages. Message travels over the network. For communication; server and client must be agreed upon Format of message Protocol Transport Encoding of the message etc. Channels are the responsible component of WCF for Creation ofContinueContinue reading “What is Channel in WCF?”

Calling One-Way WCF Service using IOutputChannel

Note: This post is inspired by one of the chapter from book Essential WCF. I tried to put the content in my way. Thanks to the original author. I strongly recommend you to read this post http://winterdom.com/2007/08/ioutputchanneloverirequestchannel One way communication pattern allows client to send message to service and forget. Client doesn’t have to waitContinueContinue reading “Calling One-Way WCF Service using IOutputChannel”

XmlDictionary and XmlDictionaryString classes to create WCF Message

It is common when you will create Message, you may use below classes Class Namespace XmlDictionary System.Xml XmlDictionaryString System.Xml Let us investigate purpose of each class one by one. XmlDictionary class allows us to create a private pair of Key and Value. This key-value pair can be used to represent Element name Attribute name XMLContinueContinue reading “XmlDictionary and XmlDictionaryString classes to create WCF Message”

Tracing in WCF: Understanding basic steps

Theory behind WCF Tracing is not an exception of classical definition of Tracing. Through Tracing an application provides information about itself. Information may vary from internal state of object to passed input parameter to method. This information should be logged, persisted or saved somewhere. WCF Tracing can be used for the instrumentation of the WCFContinueContinue reading “Tracing in WCF: Understanding basic steps”

Internal classes to understand WCF Message: XmlDictionaryWriter Class

XmlDictionaryWriter class is one of the most important classes to work with Message in WCF. This class is inherited form XmlWriter class. Essentially this takes as Stream as input parameter. This class mainly performs serialization and encoding of the stream to send as Message in WCF.     There are four factory methods of thisContinueContinue reading “Internal classes to understand WCF Message: XmlDictionaryWriter Class”

Internal classes to understand WCF Message: XmlDictionary Class

In last post we discussed the way we could create WCF Message. If you go back and reexamine CreateMessage() function , you will find this function is overloaded with 11 different set of inputs. It is common when you will create Message, you may use XmlDictionary class. XmlDictionary class allows us to create a privateContinueContinue reading “Internal classes to understand WCF Message: XmlDictionary Class”