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 […]
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 […]
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 […]
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 […]
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.
public interface IHelloServiceModified
string HelloWorld(string name);
The next step is you need to […]