CXXXIX. SOAP Functions簡介The SOAP extension can be used to write SOAP Servers and Clients. It supports subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications. 需求This extension makes use of the GNOME xml library. Download and install this library. You will need at least libxml-2.5.4. 安裝This extension is only available if PHP was configured with --enable-soap. 運行時配置這些函數的行為受 php.ini 的影響。
表格 1. SOAP Configuration Options
以下是配置選項的簡要解釋。
預定義類SoapClient構造函數
方法
SoapFault構造函數
SoapHeaderSoapHeader is a special low-level class for passing or returning SOAP headers. It's just a data holder and it does not have any special methods except its constructor. It can be used in the SoapClient->__soapCall() method to pass a SOAP header or in a SOAP header handler to return the header in a SOAP response. 構造函數
SoapParamSoapParam is a special low-level class for naming parameters and returning values in non-WSDL mode. It's just a data holder and it does not have any special methods except its constructor. 構造函數
SoapServer構造函數
方法
SoapVarSoapVar is a special low-level class for encoding parameters and returning values in non-WSDL mode. It's just a data holder and does not have any special methods except the constructor. It's useful when you want to set the type property in SOAP request or response. 構造函數
預定義常量以下常量由本增加模組定義,因此只有在本增加模組被編譯到 PHP 中,或是在運行時被動態加載後才有效。
| ||||||||||||||||||