Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
/lib/ -> soaplib.php (source)

Web services wrapper library script Since Moodle 2.0 we rely only on native PHP Soap extension, the original name of this file was lib/soap/phpsoap.php

Author: Alex Smith and others members of the Serving Mathematics project
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 150 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions


Functions that are not part of a class:

soap_connect($wsdl, $trace=false)   X-Ref
Create a new SoapClient object

param: string $wsdl   URI of the WSDL file
param: boolean $trace indicates if the soap messages should be saved (i.e. if
return: mixed         Returns either a SoapClient object or, if the connection failed,

soap_call($connection, $call, $params)   X-Ref
Make a call to a SoapClient

param: SoapClient $connection  The SoapClient to call
param: string $call            Operation to be performed by client
param: array $params           Parameters for the call
return: mixed                  The return parameters of the operation or a SoapFault

soap_serve($wsdl, $functions)   X-Ref
No description

make_soap_fault($faultcode, $faultstring, $faultactor='', $detail='', $faultname='', $headerfault='')   X-Ref
No description

get_last_soap_messages($connection)   X-Ref
No description

soap_encode($value, $name, $type, $namespace, $encode=XSD_STRING)   X-Ref
No description

soap_encode_object($value, $name, $type, $namespace)   X-Ref
No description

soap_encode_array($value, $name, $type, $namespace)   X-Ref
No description

handle_soap_wsdl_request($wsdlfile, $address=false)   X-Ref
No description