SOAPResult

From Xojo Documentation

Class (inherits from Object)

Returns the value found for the specified XML tag.

Properties
Body Envelope ErrorCode
Document Error ErrorMessage
Methods
Result

Sample Code

The follow code demonstrates how you might use this class. It does not refer to an actual SOAP web service.

Var sm As SOAPMethod
Var sr As SOAPResult

// Create soap method and define parameters
sm = New SOAPMethod
sm.Parameter("zipcode") = "04101"

// Setup method properties
sm.MethodNamespace = "urn:xmethods-Temperature"
sm.URL = "http://services.example.com/soap/servlet/rpcrouter"

// Call the method
sr = sm.Invoke("getTemp")

// Get the result
Var r As String = sr.Result("return")

See Also

SOAPMethod class; SOAPException error.