This documentation is archived and is not being maintained.

SoapMessage.GetReturnValue Method

Gets the return value of an XML Web service method.

[Visual Basic]
Public Function GetReturnValue() As Object
[C#]
public object GetReturnValue();
[C++]
public: Object* GetReturnValue();
[JScript]
public function GetReturnValue() : Object;

Return Value

An Object representing the return value of the XML Web service method.

Exceptions

Exception Type 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

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SoapMessage Class | SoapMessage Members | System.Web.Services.Protocols Namespace

Show: