SoapClient (open)
Soap client, discovery-based API to access services described by http-accessible WSDLs.
Syntax
LOADLIB "wh::internet/soap.whlib";
OBJECTTYPE SoapClient
Constructor
Variables
- INTEGER cacheresponsestime
Time in minutes to cache responses. Defaults to 0 (no caching at all)
- INTEGER loglevel
- RECORD overrides
Overrides applied to services created with GetServiceNS
- BOOLEAN storewsdl
If set to TRUE, a downloaded external WSDL is saved in the WebHare temp directory
- RECORD ARRAY urlrewrites
- OBJECT webbrowser
Properties
- PROPERTY logfunction
Log function
- PROPERTY persistentconnections
- PROPERTY throwfaults
Throw SoapWSDLFault when a fault is returned
- PROPERTY timezoneencoders
- PROPERTY wsdlmodifications
Modifications to apply to the WSDL (type: WSDLModifications)
- PROPERTY xmldomimpl
Used DOM implementation (can be used when for overriding entity loading for WSDLs)
Functions
- MACRO Close()
- RECORD FUNCTION DefaultEntityLoader(STRING schemalocation, STRING id, STRING parent_filename)
- OBJECT FUNCTION GetInterface()
Get the first usable service as a directly callable interface
- OBJECT FUNCTION GetServiceNS(STRING uri, STRING name)
Get service object, lookup by name
- RECORD ARRAY FUNCTION GetServices()
Get the list of available services
- MACRO LoadWSDLFromBlob(BLOB wsdl, STRING schemalocation)
Loads a WSDL from a blob
- MACRO LoadWSDLFromURL(STRING url)
Loads a WSDL from an URL
- MACRO PreloadSOAPEncodingXSD()
Preload SOAP encoding XSD (for stuff like soapenc:array)
- MACRO PreloadXSD(STRING namespace, STRING schemalocation, STRING id)
Preload an XSD (for missing imports in XSD)
- MACRO RegisterTimezoneEncoder(STRING tzidentifier, FUNCTION PTR encoder)
Registers a custom encoder function for the given timezone identifier.