The SoapServer class

(PHP 5, PHP 7, PHP 8)

Giriş

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.

Sınıf Sözdizimi

class SoapServer {
/* Özellikler */
private ?SoapFault $__soap_fault = null;
/* Yöntemler */
public function __construct(?string $wsdl, array $options = [])
public function addFunction(array|string|int $functions): void
public function addSoapHeader(SoapHeader $header): void
public function fault(
    string $code,
    string $string,
    string $actor = "",
    mixed $details = null,
    string $name = "",
    string $lang = ""
): void
public function getFunctions(): array
public function __getLastResponse(): ?string
public function handle(?string $request = null): void
public function setClass(string $class, mixed ...$args): void
public function setObject(object $object): void
public function setPersistence(int $mode): void
}

Özellikler

service

__soap_fault

İçindekiler