EnvelopeVersion.None Property

Definition

Gets the envelope version not using a version of SOAP.

public static System.ServiceModel.EnvelopeVersion None { get; }

Property Value

The envelope version not using a SOAP formatting.

Examples

EnvelopeVersion envNotSOAP =  EnvelopeVersion.None;

Remarks

If the None message version is used this means that a SOAP envelope is not written out and the message emits the contents of the body. This enables an Windows Communication Foundation (WCF) channel to communicate with an endpoint that is expecting XML with no SOAP formatting. The XML payload lives in the body of a message and is the only thing emitted when it hits the encoder.

Similarly, when the arbitrary chunk of XML is received it is wrapped up in a Message for propagation up the channel stack. The required headers are inserted and the message is processed as if it had been a SOAP message.

Applies to

产品 版本
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0