Is Wrapped

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Mar 10, 2008 at 1:03 PM
Hi All,

I have a question about the setting iswrapped within a messagecontract. When i define multiple message parts and validate my service contract it will display an error with the message that the message should be wrapped. When i set is Wrapped to true everything works fine. When i generate a proxy of my service i see that there is a wrapper created around my message, but i don't see the reason for this. The wrapper is a class where my messagecontract is a property of that class. Why is this "is wrapped" needed? Thanks in advance


Mar 11, 2008 at 8:31 PM
The IsWrapped property basically controls how the body element is serialized in a SOAP message. For further details read Using Message Contracts in particular the section "Controlling Whether the SOAP Body Parts Are Wrapped".
Mar 12, 2008 at 8:20 AM
Hi charlyfreind,

Thanks for your reply. the link is very useful thanks