文章詳情頁
PHP擴展之Web服務(二)——SOAP
瀏覽:7日期:2022-09-16 09:43:54
一、概述及安裝
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 faileduse_soap_error_handler?— Set whether to use the SOAP error handler三、相關類及成員函數SoapClient
SoapClient::__call?— Calls a SOAP function (deprecated)SoapClient::__construct?— SoapClient constructorSoapClient::__doRequest?— Performs a SOAP requestSoapClient::__getFunctions?— Returns list of available SOAP functionsSoapClient::__getLastRequest?— Returns last SOAP requestSoapClient::__getLastRequestHeaders?— Returns the SOAP headers from the last requestSoapClient::__getLastResponse?— Returns last SOAP responseSoapClient::__getLastResponseHeaders?— Returns the SOAP headers from the last responseSoapClient::__getTypes?— Returns a list of SOAP typesSoapClient::__setCookie?— The __setCookie purposeSoapClient::__setLocation?— Sets the location of the Web service to useSoapClient::__setSoapHeaders?— Sets SOAP headers for subsequent callsSoapClient::__soapCall?— Calls a SOAP functionSoapClient::SoapClient?— SoapClient constructorSoapServer
SoapServer::addFunction?— Adds one or more functions to handle SOAP requestsSoapServer::addSoapHeader?— Add a SOAP header to the responseSoapServer::__construct?— SoapServer constructorSoapServer::fault?— Issue SoapServer fault indicating an errorSoapServer::getFunctions?— Returns list of defined functionsSoapServer::handle?— Handles a SOAP requestSoapServer::setClass?— Sets the class which handles SOAP requestsSoapServer::setObject?— Sets the object which will be used to handle SOAP requestsSoapServer::setPersistence?— Sets SoapServer persistence modeSoapServer::SoapServer?— SoapServer constructorSoapFault
SoapFault::__construct?— SoapFault constructorSoapFault::SoapFault?— SoapFault constructorSoapFault::__toString?— Obtain a string representation of a SoapFaultSoapHeader
SoapHeader::__construct?— SoapHeader constructorSoapHeader::SoapHeader?— SoapHeader constructorSoapParam
SoapParam::__construct?— SoapParam constructorSoapParam::SoapParam?— SoapParam constructor?SoapVar
SoapVar::__construct?— SoapVar constructorSoapVar::SoapVar?— SoapVar constructor 標簽:
PHP
相關文章:
排行榜