System.Web.Services.Protocols.SoapRpcMethodAttribute.OneWay Property

Gets or sets whether an XML Web service client waits for the Web server to finish processing an XML Web service method.

Syntax

public bool OneWay { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When an XML Web service method has the SoapRpcMethodAttribute.OneWay property set to true, the XML Web service client does not have to wait for the Web server to finish processing the XML Web service method. As soon as the Web server has deserialized the System.Web.Services.Protocols.SoapServerMessage, but before it invokes the XML Web service method, the server returns an HTTP 202 status code. An HTTP 202 status code indicates to the client that the Web server has started processing the message. Therefore, an XML Web service client receives no acknowledgment that the Web server successfully processed the message.

One-way methods cannot have a return value or any out parameters.

If you are using the .NET Framework version 1.0 XML Web service methods that have either the System.Web.Services.Protocols.SoapRpcMethodAttribute or System.Web.Services.Protocols.SoapDocumentMethodAttribute attribute applied to them with the SoapDocumentMethodAttribute.OneWay property set to true, do not allow access to their System.Web.HttpContext using the static System.Web.HttpContext.Current property. To access the System.Web.HttpContext, derive the class implementing the XML Web service method from System.Web.Services.WebService and access the System.Web.Services.WebService.Context property.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0