IHeaderHandler (Windows CE 5.0)
This interface provides the methods necessary to create and access content contained in a SOAP header.
SOAP messages can contain zero or more headers, as well a body. In the Windows CE SOAP Toolkit, you can create and access headers on both the client and server.
- To use headers on the client side, you must provide a COM class that implements the IHeaderHandler interface and make the HeaderHandler property of the SoapClient object (accessed using the ISoapClient interface) reference an instance of this class.
- To use headers on the server side, you must provide a COM class that implements the IHeaderHandler interface and identify the class in the Web Services Meta Language (WSML) file for the service. The WSML file uses a <using> element to define a header handler object. This <using> element is associated with a particular <service>, <port>, or <operation> element.
The following table shows the methods supported by the IHeaderHandler interface.
Method | Description |
---|---|
willWriteHeaders | This method indicates if a header will be written. |
writeHeaders | This method writes a header. |
readHeader | This method reads a header. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Mssoap.h.
Link Library: Uuid.lib.
See Also
Handling SOAP Headers | SOAP Objects and Interfaces
Send Feedback on this topic to the authors