SOAPMethod
From Xojo Documentation
This item was deprecated in version 2019r2. |
Class (inherits from Object)
Used to call a SOAP remote method or function.
Properties | |||||
|
Methods | |||||
|
Constructors | |
|
Notes
To call a secure web service (using HTTPS), you must supply a secure socket with the SOAPMethod.UseSocket method.
To execute a SOAP service, a WSDL must be set in order to pass the correct parameter values. For example, if the SOAP service provides a function called GetTemp, which takes a Zip Code, you call it as follows:
SOAPMethod1.GetTemp("60615")
Sample Code
Note: This is a sample. Public SOAP web services can go offline without notice.
// http://webservices.daehosting.com/services/TemperatureConversions.wso?op=FahrenheitToCelsius
Var wsdl As String = "http://webservices.daehosting.com/services/TemperatureConversions.wso?WSDL"
Var sm As New SOAPMethod(wsdl)
Var celsius As String
celsius = sm.FahrenheitToCelsius(80)
// celsius = 26.67
Var wsdl As String = "http://webservices.daehosting.com/services/TemperatureConversions.wso?WSDL"
Var sm As New SOAPMethod(wsdl)
Var celsius As String
celsius = sm.FahrenheitToCelsius(80)
// celsius = 26.67
Example Projects
- Examples/Communication/Internet/SOAPConversionRate
- Examples/Communication/Internet/SOAPTempConv
See Also
SOAPResult class; SOAPException error.