SoapMessage::GetReturnValue Method
Gets the return value of an XML Web service method.
Assembly: System.Web.Services (in System.Web.Services.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The XML Web service method does not have a return value. OR The return value is not available. For details see the Remarks section |
If a return value is not available, ASP.NET throws InvalidOperationException when accessing the GetReturnValue property.
In a SoapClientMessage the return value is available when the SoapMessageStage value is AfterDeserialize. In a SoapServerMessage the return value is available when SoapMessageStage value is BeforeSerialize.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.