SOAPResult
From Xojo Documentation
This item was deprecated in version 2019r2. |
Class (inherits from Object)
Returns the value found for the specified XML tag.
Properties | ||||||
|
Methods | |
|
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")
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.