Home >Backend Development >PHP Tutorial >PHP extension—SOAP
1. Overview and installation
SOAP extension can be used to write SOAP servers and clients, supporting a subset of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications.
This extension requires the libxml PHP extension. This means that --enable-libxml needs to be used, although this will be done implicitly since libxml is enabled by default.
To enable SOAP support, add --enable-soap when configuring PHP.
2. Related functions
is_soap_fault — Checks if a SOAP call has failed
use_soap_error_handler — Set whether to use the SOAP error handler
3. Related classes and member functions
SoapClient
SoapClient::__call — Calls a SOAP function (deprecated)
SoapClient::__construct — SoapClient constructor
SoapClient::__doRequest — Performs a SOAP request
SoapClient::__getFunctions — Returns list of available SOAP functions
SoapClient::__getLastRequest — Returns last SOAP request
SoapClient::__getLastRequestHeaders — Returns the SOAP headers from the last request
SoapClient::__getLastResponse — Returns last SOAP response
SoapClient::__getLastRes ponseHeaders — Returns the SOAP headers from the last response
SoapClient::__getTypes — Returns a list of SOAP types
SoapClient::__setCookie — The __setCookie purpose
SoapClient::__setLocation — Sets the location of the Web service to use
SoapClient::__setSoapHeaders — Sets SOAP headers for subsequent calls
SoapClient::__soapCall — Calls a SOAP function
SoapClient::SoapClient — SoapClient constructor
SoapServer
SoapServer::addFunction — Adds one or more functions to handle SOAP requests
SoapServer::addSoapHeader — Add a SOAP header to the response
SoapServer::__construct — SoapServer constructor
SoapServer::fault — Issue SoapServer fault indicating an error
SoapServer::getFunctions — Returns list of defined functions
SoapServer::handle — Handles a SOAP request
SoapServer::setClass — Sets the class which handles SOAP requests
SoapServer::setObject — Sets the object which will be used to handle SOAP requests
SoapServer::setPersistence — Sets SoapServer persistence mode
SoapServer::SoapServer — SoapServer constructor
SoapFault
SoapFault::__construct — SoapFault constructor
SoapFault::SoapFault — SoapFault constructor
SoapFault::__toString — Obtain a string representation of a SoapFault
SoapHeader
SoapHeader::__construct — SoapHeader constructor
SoapHeader::SoapHeader — SoapHeader constructor
SoapParam
SoapParam::__construct — SoapParam constructor
SoapParam::SoapParam — SoapParam constructor
SoapVar
SoapVar::__construct — SoapVar constructor
SoapVar::SoapVar — SoapVar constructor