Share via


SoapWebRequest.GetResponse Method

Returns a SOAP response from an XML Web service.

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

Usage

'Usage
Dim returnValue As WebResponse
Dim soapWebRequest1 As SoapWebRequest
returnValue = soapWebRequest1.GetResponse()

Syntax

'Declaration
Public Overrides Function GetResponse() As WebResponse
public override WebResponse GetResponse();
public: virtual WebResponse^ GetResponse();
public WebResponse GetResponse();
public override function GetResponse() : WebResponse;

Return Value

A System.Net.WebResponse containing the SOAP response from an XML Web service.

Remarks

The GetResponse method sends a SOAP request to an XML Web service and returns a SoapWebResponse . If the SOAP request has already been initiated by a call to the !:System.Net.GetRequestStream method, the GetResponse method completes the request and returns any SOAP response.

The GetResponse method provides synchronous access to the SoapWebResponse. For asynchronous access, use the BeginGetResponse and EndGetResponse methods.

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

SoapWebRequest Class
Microsoft.Web.Services2 Namespace
SoapWebResponse

Other Resources

SoapWebRequest Members