一、概述與安裝
SOAP擴充可用於編寫SOAP伺服器和用戶端,支援 SOAP 1.1, SOAP 1.2 和 WSDL 1.1 規格的子集。
此擴充功能需要 libxml PHP 擴充。這表示需要使用 --enable-libxml ,儘管這將隱式完成因為 libxml 是缺省開啟的。
要開啟SOAP支援, 設定PHP 時要加上 --enable-soap .
二、相關函數
is_soap_fault — Checks if a SOAP call has failed
三、相關類別及成員函數
SoapClient
SoapClient::__call — Calls a SOAP function (deprecated)
SoapClient::__construct iento__aquestoquestequest也
unctions — Returns list of available SOAP functionsSoapClient::__getLastRequest — Returns last SOAP requestSoapClient::__getLastRequestHeaders — Returns the SO1 headme the SoapClient::__getLastResponseHeaders — Returns the SOAP headers from the last responseSoapClient::_____SoapClient::__setSoapHeaders — Sets SOAP headers for subsequent calls
SoapClient::__soapCall — Calls a SOAP function
SoapClient::或 more functions to handle SOAP requests
SoapServer::addSoapHeader — Add a SOAP header to the response
SoapServer::__construct — SoapServer constructor
So of defined functions
SoapServer::handle — Handles a SOAP request
SoapServer::setClass — Sets the class which handles SOAP requests
SoapServer::setObject — Sets the object whapths be used toapleamAPsl. persistence mode
SoapServer::SoapServer — SoapServer constructor
SoapFault
SoapFault::__construct — SoapFault constructor
So representation of a SoapFaultSoapHeaderSoapHeader::__construct — SoapHeader constructorSoapHeader::SoapHeader — SoapHeader constructorSoapParamSo SoapVarSoapVar::__construct — SoapVar constructor SoapVar::SoapVar — SoapVar constructor