SoapMessage.OneWay Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating the SoapDocumentMethodAttribute.OneWay property of either the SoapDocumentMethodAttribute or the SoapRpcMethodAttribute attribute applied to the XML Web service method.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public abstract bool OneWay { get; }

Property Value

Type: System.Boolean

true if the OneWay property of the SoapDocumentMethodAttribute or SoapRpcMethodAttribute applied to the XML Web service method is true; otherwise, false.

See the SoapDocumentMethodAttribute.OneWay property of SoapDocumentMethodAttribute or SoapRpcMethodAttribute for details about one-way XML Web service methods.

The OneWay property is accessible in all stages of SoapMessageStage.

if(message.OneWay)
   myStreamWriter.WriteLine(
      "The method invoked on the client shall not wait"
      + " till the server finishes");
else
   myStreamWriter.WriteLine(
      "The method invoked on the client shall wait"
      + " till the server finishes");

.NET Framework
Available since 1.1
Return to top
Show: