Editar

Compartilhar via


RoutingConfiguration.SoapProcessingEnabled Property

Definition

Gets or sets a value that indicates whether messages should be processed between SOAP MessageVersions.

public:
 property bool SoapProcessingEnabled { bool get(); void set(bool value); };
public bool SoapProcessingEnabled { get; set; }
member this.SoapProcessingEnabled : bool with get, set
Public Property SoapProcessingEnabled As Boolean

Property Value

true if messages should be processed; otherwise, false. The default value is true.

Remarks

SOAP processing is the process where messages are converted between SOAP MessageVersions.

Setting this value to false indicates that the RoutingBehavior should not install the SoapProcessingBehavior on the client endpoints. If set to false, you must add your own message inspector or other code to handle some aspects of messages before they are sent. It is also possible to disable SOAP processing on each endpoint. For more information, see the SoapProcessingBehavior class.

By default, the RoutingBehavior creates and attaches a new SoapProcessingBehavior with ProcessMessages set to true for each client endpoint. If you do not want to use the SoapProcessingBehavior on a specific endpoint, create a new SoapProcessingBehavior with this value set to false and then attach it to the endpoint on which you do not want processing to occur. If the RoutingBehavior observes that a client already has a SoapProcessingBehavior, it does not attempt to attach another.

To disable the application of SoapProcessingBehavior on any endpoint, disable SOAP processing on the RoutingBehavior and the RoutingConfiguration.

If SoapProcessingEnabled is true, the SoapProcessingBehavior is added to the client endpoint Behaviors collection.

Applies to