SoapServer::handle

(PHP 5 >= 5.0.1, PHP 7)
Handles a SOAP request
public void SoapServer::handle ([ string $soap_request ] )

Processes a SOAP request, calls necessary functions, and sends a response back.

Parameters:
soap_request

The SOAP request. If this argument is omitted, the request is assumed to be in the raw POST data of the HTTP request.

Returns:

No value is returned.

Examples:
SoapServer::handle() example
1
2
3
4
5
6
7
8
9
10
<?php
function test($x)
{
    return $x;
}
 
$server new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
?>
See also:

SoapServer::SoapServer() -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.