文章詳情頁
PHP擴展之Web服務(wù)(二)——SOAP
瀏覽:5日期:2022-09-16 09:43:54
一、概述及安裝
SOAP擴展可以用于編寫SOAP服務(wù)器和客戶端,支持?SOAP 1.1,?SOAP 1.2?和?WSDL 1.1?規(guī)格的子集。
此擴展需要?libxml?PHP 擴展。這表示需要使用?--enable-libxml?,盡管這將隱式完成因為 libxml 是缺省開啟的。
要開啟SOAP支持, 配置 PHP 時要加上?--enable-soap?.
二、相關(guān)函數(shù)is_soap_fault?— Checks if a SOAP call has faileduse_soap_error_handler?— Set whether to use the SOAP error handler三、相關(guān)類及成員函數(shù)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 標(biāo)簽:
PHP
相關(guān)文章:
1. 父div高度不能自適應(yīng)子div高度的解決方案2. 淺談XML Schema中的elementFormDefault屬性3. CSS3實例分享之多重背景的實現(xiàn)(Multiple backgrounds)4. ASP中SELECT下拉菜單同時獲取VALUE和TEXT值的實現(xiàn)代碼5. servlet+jsp實現(xiàn)過濾器 防止用戶未登錄訪問6. ASP錯誤捕獲的幾種常規(guī)處理方式7. 利用XMLSerializer將對象串行化到XML8. 選擇模式 - XSL教程 - 29. JSP狀態(tài)管理的簡單介紹10. 前端從瀏覽器的渲染到性能優(yōu)化
排行榜
