Share via


SoapAttribute Method

This method adds an attribute to an element when building a SOAP message.

HRESULT SoapAttribute( 
  BSTR name, 
  BSTR ns_uri, 
  BSTR value, 
  BSTR prefix 
);

Parameters

  • name
    [in] Attribute name.
  • ns_uri
    [in] Optional. Universal Resource Identifier (URI) for the attribute's namespace. The default is "". If this parameter is missing or is an empty string, the element is in the default namespace.
  • value
    [in] Optional. Attribute value. The default is "". If this parameter is missing or is an empty string, the attribute's value is an empty string.
  • prefix
    [in] Optional. Namespace prefix used for the element. The default is "". If this parameter is missing or is an empty string, a namespace prefix is generated as needed.

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.

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.