Compartilhar via


SoapEnvelope.SetBodyObject Method (Object, String)

Sets the Body property of the SOAP envelope using the specified object and default XML namespace.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim body As Object
Dim defaultNamespace As String
Dim soapEnvelope1 As SoapEnvelope
soapEnvelope1.SetBodyObject(body, defaultNamespace)

Syntax

'Declaration
Overloads Public Sub SetBodyObject( _
    ByVal body As Object, _
    ByVal defaultNamespace As String _
)
public void SetBodyObject(
    object body, 
    string defaultNamespace
);
public:
void SetBodyObject(
    Object^ body,
    String^ defaultNamespace
);
public void SetBodyObject(
    System.Object body, 
    System.String defaultNamespace
);
public function SetBodyObject(
     body : Object, 
     defaultNamespace : String
) : Void;

Parameters

  • body
  • defaultNamespace
    A URI that specifies the default XML namespace.

Exceptions

Exception type Condition
ArgumentNullException

bodyObject or defaultNamespace is null.

Remarks

Any existing content in the Body property is lost.

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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapEnvelope Class
SoapEnvelope Members
Microsoft.Web.Services3 Namespace