[propget] HRESULT Headers([out, retval] ISOAPNodes ** Nodes);
This returns a nodes collection that represents the child nodes of the SOAP Header element. The Header element is the key extensibility point in SOAP
dim e, hdr
set e = CreateObject("pocketSOAP.Envelope.2")
e.setMethod "getQuote", "http://stocks.com/"
' create a new header element, with the authentication info in
set hdr = e.Headers.Create ("Authentication", "", "http://stocks.com/auth/")
' now create the child elements for it
hdr.Nodes.Create "username", "simonfell"
hdr.Nodes.Create "password", "password"
' create the rest of the message as normal
e.Parameters.Create "Symbol", "AMD"
...
Copyright © Simon Fell, 2000-2004. All rights reserved.