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”

Upload large file of size more than 5 MB from Silverlight to Server location using WCF

This post is based on post File Upload from Silverlight using WCF. So please read it before proceeding with this post Long back I wrote post on uploading a File from Silverlight to server location using WCF. I found my own post quiet useful. However, when I reread and implemented the code, I mentioned inContinueContinue reading “Upload large file of size more than 5 MB from Silverlight to Server location using WCF”

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”

Create Message in WCF

In last post  we discussed about SOAP Message Versions. Now let us move ahead and create a Message. You can create a Message using CreateMessage() method of Message class . This method is overloaded with 11 different set of input parameters. Easiest you can create a Message by just providing MessageVersion and action On runningContinueContinue reading “Create Message in WCF”

WCF SOAP Message Version

Service and client communicate to each other through Messages. So they must be agreed upon the Message version while communicating. Service may send Message as POX or may be as SOAP12. When at service side we create a SOAP Message, we term it as Message Object Model. Essentially, we can say Message Object Model isContinueContinue reading “WCF SOAP Message Version”

WCF REST Service with JSON Data

In this post I will show you working with WCF REST Service with JSON type of Data. I will discuss both POST and GET operation on data type JSON . Creating Service I have written much post on creating basic WCF REST Service. Please refer them if required. WebGet Method Let us create a GetContinueContinue reading “WCF REST Service with JSON Data”

Hosting WCF REST Service in IIS with HTTPS

In earlier post I discussed Exposing WCF REST Service over HTTPS. Major limitation on service created in last post was its self-hosted nature. In this post, I will take same service forward and host in IIS. So at the end of this post, you would able to host WCF REST Service in IIS with HTTPS.ContinueContinue reading “Hosting WCF REST Service in IIS with HTTPS”

Exposing WCF REST Service over HTTPS

In this post, I will explain; how could we expose a WCF REST Service over secure HTPP (HTTPS)? Essentially there are three steps involved 1. Create a certificate or use a third party provided certificate 2. Configure HTTPS in IIS 3. Configure webHttpBinding to use transport level security Create Certificate To expose a service overContinueContinue reading “Exposing WCF REST Service over HTTPS”