SoapWebRequest Class

Provides a Web Services Enhancements(WSE)-specific implementation of the System.Net.WebRequest class.

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

Usage

'Usage
Dim uri As String
Dim soapWebRequest1 As New SoapWebRequest(uri)

Syntax

'Declaration
Public Class SoapWebRequest
    Inherits WebRequest
public class SoapWebRequest : WebRequest
public ref class SoapWebRequest : public WebRequest
public class SoapWebRequest extends WebRequest
public class SoapWebRequest extends WebRequest

Remarks

When an XML Web service client using the WSE sends a message, this is the System.Net.WebRequest that is created by the toolkit to communicate with the XML Web service.

The SoapWebRequest class contains support for the properties and methods included in System.Net.WebRequest plus the additional SoapContext property. The SoapContext property contains security, routing, and other XML Web services architecture-specific information associated with a SOAP request.

To create an instance of the SoapWebRequest class, use one of the constructors for the class. Do not call the Microsoft.Web.Services2.WebServicesClientProtocol.GetWebRequest method or the System.Net.WebRequest.Create(System.String) method to get an instance of the SoapWebRequest class.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.Net.WebRequest
      Microsoft.Web.Services2.SoapWebRequest

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

Microsoft.Web.Services2 Namespace
SoapContext

Other Resources

SoapWebRequest Members