Explain
the significane of MessageContract attribute?
OR
Why and When do you use MessageContract attribute?
There are several advantages of using MessageContract attribute in WCF. MessageContract attribute can be used for
OR
Why and When do you use MessageContract attribute?
There are several advantages of using MessageContract attribute in WCF. MessageContract attribute can be used for
1. Adding custom headers to the message.
2. Controlling message wrapping.
3. Controlling signing and encryption of messages.
MessageContract attribute provides us with greater control over message headers and body elements. MessageContract attribute converts a type to a SOAP message. The example below shows how to use IsWrapped and ProtectionLevel parameters of MessageContract attribute. You may also set an explicit Name and Namespace.
No comments :
Post a Comment