ISOAPEnvelope::Headers Property (read-only)

[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


Return Values


Sample Code

dim e, hdr
set e = CreateObject("pocketSOAP.Envelope.2")
e.setMethod "getQuote", ""
' create a new header element, with the authentication info in
set hdr = e.Headers.Create ("Authentication", "", "") 
' 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"


See Also

The ISOAPEnvelope Interface | 




Copyright © Simon Fell, 2000-2004. All rights reserved.