startElement and endElement Methods
Other versions of this page are also available for the following:
8/28/2008
These methods begin and end an entry (child element) in the <Body> element of a SOAP message.
Syntax
HRESULT startElement(
BSTR name,
BSTR ns_uri,
BSTR enc_style_uri,
BSTR prefix
);
HRESULT endElement (void);
Parameters
- name
[in] Element name.
- ns_uri
[in] Optional. Namespace Universal Resource Identifier (URI) for the element. The default is "". The following values have special meaning when assigned to this parameter:
enc_style_uri
[in] Optional. URI of the encodingStyle attribute of the element. If this parameter is missing or is an empty string, the application writes no encodingStyle attribute.Value Description NONE
Default. Use this value if you do not want encodingStyle attribute generated in element.
STANDARD
Use this value if you want to generate encodingStyle attribute with the default encoding style in the element.
- prefix
[in] Optional. Namespace prefix used for the element. The default is "". If this parameter is missing or is an empty string, the application generates a namespace prefix as needed.
Return Value
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
Header | mssoap.h |
Library | uuid.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |