public class EmployeeDetails
public int ID;
public string First_Name;
public string Last_Name;
Message contract can be applied to type using MessageContract
attribute as shown above. We can add custom header and custom body by using MessageHeader
When EmployeeDetails type in the service operation is used as parameter then WCF will add an extra header call 'ID' to the SOAP envelope. It also add First_Name, Last_Name as an extra member to the SOAP Body.
Thanks and Regards