Message contract gives us more control in xml SOAP especially including adding custom data .
MessageContract attribute has the following parameters.
1. IsWrapped
2. WrapperName
3. WrapperNamespace
4. ProtectionLevel
MessageHeader attribute has the following parameters.
1. Name
2. Namespace
3. ProtectionLevel
4. Actor
5. MustUnderstand
6. Relay
MessageBodyMember attribute has the following parameters.
1. Name
2. Namespace
3. Order
4. ProtectionLevel
DataContract gives very limited control
over the SOAP messages. On the other hand, MessageContract gives full
control over the SOAP messages by providing access to the SOAP header and body
sections using MessageHeader and MessageBodyMember attributes.
No comments:
Post a Comment