AddMessageHeaderItem Method

Adds a SoapHeader item to the SOAP header before the WCF client sends a request.

Syntax

client.wcfConnectionObject.SoapMessageHeader.AddMessageHeaderItem (string ItemName, string ItemNamespace, string ItemValue, PBWCF.WCFHMAC ItemEncryptAlgorithm!, string EncryptKey)

Parameters

Returns

Boolean. Returns true if successful, otherwise returns false.

Examples

Usage

If you use encryption, the format for a SoapHeader item in the request sent by the WCF client is:
  <ItemName xmlns=”ItemNamespace”>EncryptedItemValue</ItemName>
Related reference
WCFHMAC Enumeration
WCFSoapMessageHeader Class
Related information
RemoveAllMessageHeaderItems Method
RemoveMessageHeaderItem Method