首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

SoapServer (class)

Introduction

(PHP 5 >= 5.0.1, PHP 7)

The SoapServer class provides a server for the » SOAP 1.1 and » SOAP 1.2 protocols. It can be used with or without a WSDL service description.

Class synopsis

SoapServer {

/* Methods */

代码语言:javascript
复制
public void addFunction ( mixed $functions )
代码语言:javascript
复制
public void addSoapHeader ( SoapHeader $object )
代码语言:javascript
复制
public __construct ( mixed $wsdl [, array $options ] )
代码语言:javascript
复制
public void fault ( string $code , string $string [, string $actor [, string $details [, string $name ]]] )
代码语言:javascript
复制
public array getFunctions ( void )
代码语言:javascript
复制
public void handle ([ string $soap_request ] )
代码语言:javascript
复制
public void setClass ( string $class_name [, mixed $args [, mixed $... ]] )
代码语言:javascript
复制
public void setObject ( object $object )
代码语言:javascript
复制
public void setPersistence ( int $mode )
代码语言:javascript
复制
public SoapServer ( mixed $wsdl [, array $options ] )

}

Table of Contents

  • 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

← SoapClient::SoapClient

SoapServer::addFunction →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券