example for amazon webservice
<?php
$wsdl_url =
"http://soap.amazon.com/schemas3/AmazonWebServices.wsdl";
$client = new SoapClient($wsdl_url);
var_dump($client->__getFunctions());
?>
SoapServer::getFunctions
(PHP 5 >= 5.0.1)
SoapServer::getFunctions — بازگرداندن فهرست توابع تعریف شده
Description
public array SoapServer::getFunctions
( void
)
بازگرداندن فهرست توابع تعریف شده در شی SoapServer. این متد فهرستی از توابع اضافه شده SoapServer::addFunction() یا SoapServer::setClass() را باز میگرداند.
Parameters
This function has no parameters.
Return Values
array توابع تعریف شده.
Examples
Example #1 مثال SoapServer::getFunctions()
<?php
$server = new SoapServer(NULL, array("uri" => "http://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";
}
}
?>
See Also
- SoapServer::SoapServer() - SoapServer constructor
- SoapServer::addFunction() - Adds one or more functions to handle SOAP requests
- SoapServer::setClass() - Sets the class which handles SOAP requests
mariuz at gmail dot com ¶
4 years ago
