[propget] HRESULT ItemByName([in] BSTR Name, [in, defaultvalue(L"")] BSTR Namespace, [out, retval] ISOAPNode ** node);
This returns the first node in the collection with a matching Name & Namespace URI.
The first node with a matching Name & Namespace URI, or if one is not found the E_INVALIDARG error is returned.
dim e,t,n set e = CreateObject("pocketSOAP.Envelope.2") set t = CreateObject("pocketSOAP.HTTPTransport.2") ' call the echoString method e.setMethod "echoString", "http://soapinterop.org/" e.Parameters.Create "InputString" , "hello world" ' but use an intermediary to log the request/response ' the intermediary acts in the role of 'http://schemas.pocketsoap.com/logi/2001/01/' const LOG_NS = "http://schemas.pocketsoap.com/logi/2001/01/" set n = e.Headers.Create ("Log", "", LOG_NS) n.actor = LOG_NS n.root = true ' create a new node as a child of the header node. n.nodes.create "NextHop", "http://soap.4s4c.com/ilab/soap.asp", LOG_NS t.send "http://soap.4s4c.com/log.ashx", e.serialize e.parse t wscript.echo e.Headers.ItemByName("LogInfo", LOG_NS).Value
Copyright © Simon Fell, 2000-2004. All rights reserved.