Warning: file_put_contents(): Only -1 of 67 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
SoapServer->fault() SoapServer->handle() SOAP PHP Manual SoapServer->getFunctions() (PHP 5 >= 5.0.1) SoapServer->getFunctions() — Returns list of defined functions Description SoapServer ar...
Forum und email

SoapServer->getFunctions()

(PHP 5 >= 5.0.1)

SoapServer->getFunctions() — Returns list of defined functions

Description

SoapServer
array getFunctions ( void )

This method returns the list of all functions added by SoapServer->addFunction() or SoapServer->setClass().

Return Values

The list of all functions.

Voorbeelden

Example#1 Some examples

<?php
$server 
= new SoapServer(NULL, array("uri" => "https://test-uri"));
$server->addFunction(SOAP_FUNCTIONS_ALL);
if (
$_SERVER["REQUEST_METHOD"] == "POST") {
  
$server->handle();
} else {
  echo 
"This SOAP server can handle following functions: ";
  
$functions = $server->getFunctions();
  foreach(
$functions as $func) {
    echo 
$func . "\n";
  }
}
?>