ISOAPNode::TypeNS Property

[propget] HRESULT TypeNS([out, retval] BSTR * pVal);
[propput] HRESULT TypeNS([in] BSTR newVal);

This is the namespace part of the nodes XmlType.

 

Return Values

 

Sample Code

dim n, e
set e = CreateObject("pocketSOAP.Envelope.2")
e.setMethod "echoStruct", "http://soapinterop.org/"
set n = e.Parameters.Create ( "inputStruct", "" ) 
n.Type = "SOAPStruct"
n.TypeNS = "http://soapinterop.org/xsd"
n.Nodes.Create "varStr", "Some String"
n.Nodes.Create "varInt", 42
n.Nodes.Create "varFloat", 1.0

wscript.echo e.serialize

' this generates
<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://soapinterop.org/'
        xmlns:b='http://soapinterop.org/xsd'
        xmlns:c='http://www.w3.org/2001/XMLSchema-instance'
        xmlns:d='http://www.w3.org/2001/XMLSchema'>
<S:Body><a:echoStruct><inputStruct href='#a'/>
</a:echoStruct>
<b:SOAPStruct E:root='0' id='a' c:type='b:SOAPStruct'>
	<varStr c:type='d:string'>Some String</varStr>
	<varInt c:type='d:short'>42</varInt>
	<varFloat c:type='d:double'>1</varFloat>
</b:SOAPStruct>
</S:Body></S:Envelope>

 

See Also

The ISOAPNode Interface | 

 

 

Copyright

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