Share via


startBody and endBody Methods

These methods begin and end the <Body> element in a SOAP message. The namespace for the <Body> element comes from the <Envelope> element.

HRESULT startBody (BSTR enc_style_uri);
HRESULT endBody (void);

Parameters

  • enc_style_uri
    [in] Optional. Value of the Universal Resource Identifier (URI) for the encodingStyle attribute of the <Body> element. The following values have special meaning when assigned to this parameter.
    Value Description
    NONE Default. Use this value if you do not want encodingStyle attribute generated in <Body> element.
    STANDARD Use this value if you want to generate encodingStyle attribute with the default encoding style ("https://schemas.xmlsoap.org/soap/encoding/") in the <Body> element.

Return Values

The following table describes the common return values.

Value Description
S_OK Success.
E_NOTIMPL The function contains no implementation.
E_OUTOFMEMORY Out of memory.

Remarks

For additional information on setting encoding style, see startEnvelope and endEnvelope Methods.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mssoap.h.
Link Library: Uuid.lib.

See Also

ISoapSerializer

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.