ISOAPNode::ValueAs Property (read-only)

[propget] HRESULT ValueAs([in] BSTR Type, [in] BSTR TypeNS, [out, retval] VARIANT * pVal);

This allows to access the current value, de-serializing it as a particular simple type if required. This is useful if the SOAP message doesn't contain embedded type information [via xsi:type]

 

Return Values

 

Sample Code

dim e , t
set e = CreateObject("pocketSOAP.Envelope.2")
e.setMethod "Add", "http://calc.org/"
e.Parameters.Create "a", 20
e.Parameters.Create "b", 20
set t = CreateObject("pocketSOAP.HTTPTransport.2")
t.send "http://soap.calc.org/", e.serialize
e.parse t
wscript.echo "results = " & e.Parameters.Item(0).ValueAs ( "int", "http://www.w3.org/2001/XMLSchema" ) 

 

See Also

The ISOAPNode Interface | 

 

 

Copyright

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