MessageContractAttribute::WrapperNamespace Property
Gets or sets the namespace of the message body wrapper element.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Use the WrapperNamespace property to set the namespace of the wrapper element.
The following code example shows the use of the MessageContractAttribute to control the SOAP envelope structure for both the request message and the response message, and the use of both the MessageHeaderAttribute (to create a SOAP header for the response message) and the MessageBodyMemberAttribute (to specify the bodies of both the request and response message). The code example contains an example of each message when sent.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0