Adds a SoapHeader item to the SOAP header before the WCF client sends a request.
client.wcfConnectionObject.SoapMessageHeader.AddMessageHeaderItem (string ItemName, string ItemNamespace, string ItemValue, PBWCF.WCFHMAC ItemEncryptAlgorithm!, string EncryptKey)
Boolean. Returns true if successful, otherwise returns false.
client.wcfConnectionObject.SoapMessageHeader.AddMessageHeaderItem("AWSAccessKeyId","http://security.amazonaws.com/doc/2007-01-01/","My access key",PBWCF.WCFHMAC.NONE!,"") client.wcfConnectionObject.SoapMessageHeader.AddMessageHeaderItem("Signature","http://security.amazonaws.com/doc/2007-01-01/","My secret key", PBWCF.WCFHMAC.HMACSHA256!, "")
WCFSoapMessageHeader Header Header = create WCFSoapMessageHeader Header.AddMessageHeaderItem("AWSAccessKeyId","http://security.amazonaws.com/doc/2007-01-01/","My access key",PBWCF.WCFHMAC.NONE!,"") Header. .AddMessageHeaderItem("Signature","http://security.amazonaws.com/doc/2007-01-01/","My secret key", PBWCF.WCFHMAC.HMACSHA256!, "") client.wcfConnectionObject.SoapMessageHeader = Header
<ItemName xmlns=”ItemNamespace”>EncryptedItemValue</ItemName>