SoapWebResponse.GetResponseStream Method

Gets the stream used to read the body of the response from the server.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim returnValue As Stream
Dim soapWebResponse1 As SoapWebResponse
returnValue = soapWebResponse1.GetResponseStream()

Syntax

'Declaration
Public Overrides Function GetResponseStream() As Stream
public override Stream GetResponseStream();
public: virtual Stream^ GetResponseStream();
public Stream GetResponseStream();
public override function GetResponseStream() : Stream;

Return Value

A System.IO.Stream containing the body of the response.

Exceptions

Exception type Condition
System.Net.ProtocolViolationException

There is no response stream.

Remarks

The GetResponseStream method returns the data stream from the requested Internet resource.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapWebResponse Class
Microsoft.Web.Services2 Namespace

Other Resources

SoapWebResponse Members