web dunia
web dunia

Reputation: 9929

What is message wrapping in WCF

In WCF Messsage contract we have IsWrapped atribute and wrappername, wrappernamespace attribute

Upvotes: 0

Views: 2951

Answers (1)

statenjason
statenjason

Reputation: 5180

Theres an Article on the MSDN that discusses message contract classes. It writes

The MessageContractAttribute has an attribute named IsWrapped that indicates whether the data contracts should be wrapped. When IsWrapped is set to false, the data contracts used by a service contract will not be wrapped. When this value is set to true, the data contracts will be wrapped; in addition, you can also control the name and namespace used for the wrapper element when IsWrapped is set to true.

WrapperName and WrapperNamespace define what element the message will be wrapped with.

To put this into context, a message contract class can be used in two cases: it can be used when you use message types or when you use different namespaces for the data contracts that are used by the service contract.

Based on this description, it doesn't appear to have an effect on security.

Upvotes: 1

Related Questions