Share via


SoapClient.SendRequestResponse Method (String, Object)

Sends a request synchronously, using the specified SOAP method and message body.

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

Usage

'Usage
Public Class soapClientImplementation
    Inherits SoapClient
        Protected Overrides Function SendRequestResponse(methodname As String, _
            obj As Object)
            MyBase.SendRequestResponse(methodname, obj)
        End Function
End Class

Syntax

'Declaration
Overloads Protected Function SendRequestResponse( _
    ByVal methodname As String, _
    ByVal obj As Object _
) As SoapEnvelope
protected SoapEnvelope SendRequestResponse(
    string methodname, 
    object obj
);
protected: SoapEnvelope^ SendRequestResponse(
    String^ methodname, 
    Object^ obj
);
protected SoapEnvelope SendRequestResponse(
    System.String methodname, 
    System.Object obj
);
protected function SendRequestResponse(
     methodname : String, 
     obj : Object
) : SoapEnvelope;

Parameters

  • methodname
    A string that specifies the SOAP method.
  • obj
    An object that represents the body of the SOAP message.

Return Value

A SoapEnvelope that represents the response.

Remarks

If the specified method name is a valid SOAP method then the SOAP action is the value of the SoapAction property. Otherwise the method name becomes the SOAP action.

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

SoapClient Class
Microsoft.Web.Services2.Messaging Namespace

Other Resources

SoapClient Members