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.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::Booleantrue 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" ); }
if(message->OneWay) myStreamWriter->WriteLine( S"The method invoked on the client shall not wait" S" till the server finishes"); else myStreamWriter->WriteLine( S"The method invoked on the client shall wait" S" till the server finishes");
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.