.net

Difference between Data Contract and Message Contract in WCF(Part-10)

Posted on

  Data Contract Message Contract Data Contract allows us to control the name and order of XML element Message Contract gives the full control on message and Message body. It allows us to change the header and body of XML. Data Contract is an agreement between Client and Service Message Contract is the structure of […]

.net

Message Contracts in WCF(part-9)

Posted on

You can use Message contracts in WCF, if and only if you wanted to change the Soap XML message. For an example, if you wanted to customize the SOAP header or change the wrapper element in SOAP message etc. If you will open the Messge log, you will see below XML message without Message contracts: […]

.net

Tracing and Logging in WCF(Part-8)

Posted on

You can use Microsoft service Configuration Editor to enable tracing and message logging in WCF. You can enable it in 2 ways. Right click on web.config–>Edit WCF Configuration Go to Tools in Visual studio–>WCF Service Configuration Editor–>File–>open–>open the required config file from local machine After the tool is open, here is the steps to enable […]

.net

WCF KnownType Attributes(Part-7)

Posted on

When a message is sent over network, using WCF, it is serialized. When this code is recieved, the WCF API parses the XML and tries to create C# objects.When client sends an derived instance of the class then how it knows which class is instantiated? The KnownType attribute informs the WCF if it can receive […]

.net

WCF Data Contract and Data Member(Part-6)

Posted on

WCF Data Contract is a formal agreement between a service and client that defines the data to be exchanged. Data Contract can be either Implicit or Explicit. Data Contract defines: The Structure and Type of data for the message External Format of Data passed to/from service Defines how data types are Serialized or Deserialized System.Runtime.Serialization […]

.net

Change WCF service without impacting Client (Part-5)

Posted on

If you wanted to change Interface name,you can change the WCF service without impacting client. For this you need to use “Name” property of service contract. We have created a WCF service in Part-3.Below is the link. Create WCF Service Let’s change the Interface name in IhelloService.cs.

The next step is you need to […]