writeHeaders Method

This method writes a header. The writeHeaders method is called if the willWriteHeaders method of the header handler object returns TRUE. In this case, the writeHeaders method uses the ISoapSerializer interface pointer provided as input to write the header content.

HRESULT writeHeaders(
  ISoapSerializer* pSerializer, 
  IDispatch* pObject 


  • pSerializer
    [in] Reference to an ISoapSerializer implementation.
  • pObject
    [in] Reference to the object that handed the request on the server. The pObject is null when the header handler is used on the client.

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.


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

See Also

Handling SOAP Headers | IHeaderHandler

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.