ISOAPEnvelope2::EnvelopeVersion Property

[propget] HRESULT EnvelopeVersion([out, retval] BSTR * envelopeVersionUri);
[propput] HRESULT EnvelopeVersion([in] BSTR envelopeVersionUri);

This property can be used to control the version of soap used for this particular envelope. To switch soap versions, change this property to the namespace URI that represents the version of SOAP being used.

 

Return Values

a string value, either http://schemas.xmlsoap.org/soap/envelope/ for SOAP 1.1 or http://www.w3.org/2003/05/soap-envelope for SOAP 1.2

 

Sample Code

dim env, t
set env = CreateObject("PocketSOAP.Envelope")
env.EnvelopeVersion = "http://www.w3.org/2003/05/soap-envelope"
env.SetMethod "echoString", "http://example.org/ts-tests"
env.Parameters.Create "inputString", "Hello World"

set t = CreateObject("PocketSOAP.HTTPTransport")
t.Send "http://www.whitemesa.net/soap12/test-rpc", env
env.Parse t

 

See Also

The ISOAPEnvelope2 Interface | 

 

 

Copyright

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