SOAP Client
SOAP Client provide a wrapper and simple unified API to the NuSOAP and PHP5 SOAP extension and allow the other modules to access SOAP-based web services on any servers on the internet.
The API is including:
- soapclient_get_libname() - return the currently used SOAP library.
- soapclient_init_client($endpoint, $use_wsdl, $options = array()) - Initialise the SOAP client.
When soapclient_init_client() is called, it will return an instance of DrupalSoapClient object which is the wrapper class to the SOAP client. The DrupalSoapClient provides 2 major functionalities:
- A method "call" to invoke the remote service
- Trap any exceptions and convert them to an error. Caller can just simple handle the error to cover both error and exception.
All functions and methods in this module return the result in an associative array with 2 keys:
- '#error' - set to 'FALSE' if the call is succeed or an error message if any error occur
- '#return' - the result return from the function in an associative array (nuSOAP format)
For more example, please check the function soapclient_test_submit() in the module code.
Note:
I'm managing to create the better documentation but no luck due to lack of free-time. Meanwhile, please check greg.harvey's blog for the example of the Complex-Type data here http://www.drupaler.co.uk/blog/complex-calls-soap-client/77.
Maintainers
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.0-beta2 | 2008-Jun-12 | 147.87 KB | Download · Release notes | Recommended for 6.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-Jun-07 | 141.04 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2009-Feb-14 | 147.84 KB | Download · Release notes | Development snapshot | |
