What is use of MessageContract attribute in WCF? [Resolved]

Posted by Kumarkrishna184 under WCF on 11/25/2015 | Points: 10 | Views : 477 | Status : [Member] | Replies : 3
What is use of MessageContract attribute in WCF?

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajayadav on: 11/25/2015 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi, We will also discuss MessageContractAttriubtes, MessageHeaderAttriubtes, MessageBodyMemberAttriubtes and a sample code demonstration.

In WCF services, a DataContract enables us to define the structure of the data. This data is sent in the body of our SOAP (Simple Object Access Protocol) messages. These messages may be of either inbound (request) or outbound (response) type. A message is nothing but a packet and WCF uses this packet to transfer information from source to destination. This message contains an envelope, header and body.

more details checkout below links

http://www.c-sharpcorner.com/UploadFile/db2972/wcf-message-contract-day-9/

http://wcftutorial.net/Message-Contract-Properties.aspx

http://www.codeproject.com/Articles/733660/DataContract-Vs-MessageContract-in-WCF


Thanks
-Raja

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kumarkrishna184 on: 11/26/2015 [Member] Starter | Points: 25

Up
0
Down
Thanks Alot

Thanks and Regards,
Krishna Kumar

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajayadav on: 11/26/2015 [Member] Starter | Points: 25

Up
0
Down
you are most welcome Krishna

Thanks
-Raja

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response