SOAP SoapServer::handle
(PHP 5, PHP 7, PHP 8)
SoapServer::handle — SOAP 요청 처리
설명
public SoapServer::handle(?string $request
= null
): void
SOAP 요청을 처리하고 필요한 함수를 호출하고 응답을 다시 보냅니다.
매개변수
request
- SOAP 요청입니다. 이 인수를 생략하면 요청이 HTTP 요청의 원시 POST 데이터에 있는 것으로 간주됩니다.
반환 값
값이 반환되지 않습니다.
변경 로그
버전 | 설명 |
---|---|
8.0.0 | request 은 이제 null을 허용합니다. |
Examples
예제 #1 SoapServer::handle() 예제
<?php
function test($x)
{
return $x;
}
$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
?>
기타
- SoapServer::__construct() - SoapServer constructor