[propget] HRESULT Name([out, retval] BSTR * pVal);
[propput] HRESULT Name([in] BSTR newVal);
This is the name of the node [localname in Xml].
dim n, e
set n = CreateObject("pocketSOAP.Node.1")
n.name = "FirstNumber"
n.value = 10
set e=CreateObject("pocketSOAP.Envelope.2")
e.SetMethod "Add", "http://calc.org/"
e.Parameters.Append n
wscript.echo e.serialize
' prints
<S:Envelope
S:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:S='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:E='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:a='http://calc.org/'
xmlns:b='http://www.w3.org/2001/XMLSchema-instance'
xmlns:c='http://www.w3.org/2001/XMLSchema'>
<S:Body><a:Add><FirstNumber b:type='c:short'>10</FirstNumber>
</a:Add>
</S:Body></S:Envelope>
Copyright © Simon Fell, 2000-2004. All rights reserved.