SOAP SoapServer 클래스
(PHP 5, PHP 7, PHP 8)
소개
SoapServer 클래스는 » SOAP 1.1, » SOAP 1.2 프로토콜용 서버를 제공합니다. WSDL 서비스 설명을 포함하거나 포함하지 않고 사용할 수 있습니다.
클래스 개요
class SoapServer {
/* Properties */
private resource $service;
private ?SoapFault $__soap_fault = null;
/* Methods */
public __construct(?string $wsdl, array $options = [])
public addFunction(array|string|int $functions): void
public addSoapHeader(SoapHeader $header): void
public fault(
string $code,
string $string,
string $actor = "",
mixed $details = null,
string $name = ""
): void
public getFunctions(): array
public handle(?string $request = null): void
public setClass(string $class, mixed ...$args): void
public setObject(object $object): void
public setPersistence(int $mode): void
}
Properties
- service
- __soap_fault
목차
- SoapServer::addFunction — SOAP 요청을 처리하기 위해 하나 이상의 함수를 추가합니다.
- SoapServer::addSoapHeader — 응답에 SOAP 헤더 추가
- SoapServer::__construct — SoapServer 생성자
- SoapServer::fault — 오류를 나타내는 SoapServer 오류 발행
- SoapServer::getFunctions — 정의된 함수 목록을 반환합니다.
- SoapServer::handle — SOAP 요청 처리
- SoapServer::setClass — SOAP 요청을 처리하는 클래스를 설정합니다.
- SoapServer::setObject — SOAP 요청을 처리하는 데 사용할 개체를 설정합니다.
- SoapServer::setPersistence — SoapServer 지속성 모드를 설정합니다.