SoapMessage::OneWay Property

 

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:
property bool OneWay {
	virtual bool get() abstract;
}

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: