CXXXVI. 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 中,或者在运行时被动态加载后才有效。
| ||||||||||||||||||