前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >soapclient php 扩展,PHP扩展—SOAP[通俗易懂]

soapclient php 扩展,PHP扩展—SOAP[通俗易懂]

作者头像
全栈程序员站长
发布2022-11-16 18:27:47
1.7K0
发布2022-11-16 18:27:47
举报

一、概述及安装

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

use_soap_error_handler — Set whether to use the SOAP error handler

三、相关类及成员函数

SoapClient

SoapClient::__call — Calls a SOAP function (deprecated)

SoapClient::__construct — SoapClient constructor

SoapClient::__doRequest — Performs a SOAP request

SoapClient::__getFunctions — Returns list of available SOAP functions

SoapClient::__getLastRequest — Returns last SOAP request

SoapClient::__getLastRequestHeaders — Returns the SOAP headers from the last request

SoapClient::__getLastResponse — Returns last SOAP response

SoapClient::__getLastResponseHeaders — Returns the SOAP headers from the last response

SoapClient::__getTypes — Returns a list of SOAP types

SoapClient::__setCookie — The __setCookie purpose

SoapClient::__setLocation — Sets the location of the Web service to use

SoapClient::__setSoapHeaders — Sets SOAP headers for subsequent calls

SoapClient::__soapCall — Calls a SOAP function

SoapClient::SoapClient — SoapClient constructor

SoapServer

SoapServer::addFunction — Adds one or more functions to handle SOAP requests

SoapServer::addSoapHeader — Add a SOAP header to the response

SoapServer::__construct — SoapServer constructor

SoapServer::fault — Issue SoapServer fault indicating an error

SoapServer::getFunctions — Returns list of defined functions

SoapServer::handle — Handles a SOAP request

SoapServer::setClass — Sets the class which handles SOAP requests

SoapServer::setObject — Sets the object which will be used to handle SOAP requests

SoapServer::setPersistence — Sets SoapServer persistence mode

SoapServer::SoapServer — SoapServer constructor

SoapFault

SoapFault::__construct — SoapFault constructor

SoapFault::SoapFault — SoapFault constructor

SoapFault::__toString — Obtain a string representation of a SoapFault

SoapHeader

SoapHeader::__construct — SoapHeader constructor

SoapHeader::SoapHeader — SoapHeader constructor

SoapParam

SoapParam::__construct — SoapParam constructor

SoapParam::SoapParam — SoapParam constructor

SoapVar

SoapVar::__construct — SoapVar constructor

SoapVar::SoapVar — SoapVar constructor

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/234546.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022年11月2日 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档