HRESULT Serialize([out, retval] BSTR * soapMsg);
This takes the current state of the Envelope object model, and serializes it as an XML/SOAP message. The transport object can choose to transcode from the supplied UTF-16 supplied data to an encoding more suitable for transport [typically UTF-8]
The serialized envelope as a string
dim e , t set e = CreateObject("pocketSOAP.Envelope.2") e.setMethod "echoString", "http://soapinterop.org/" e.Parameters.Create "inputString", "Hello World" set t = CreateObject("pocketSOAP.HTTPTransport.2") wscript.echo "Request XML" + vbCRLF + e.serialize t.send "http://soap.4s4c.com/ilab/soap.asp", e.serialize e.parse t wscript.echo e.parameters.item(0).value
Copyright © Simon Fell, 2000-2004. All rights reserved.