downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SoapServer::handle> <SoapServer::fault
[edit] Last updated: Fri, 17 May 2013

view this page in

SoapServer::getFunctions

(PHP 5 >= 5.0.1)

SoapServer::getFunctionsDevuelve una lista de las funciones definidas

Descripción

public array SoapServer::getFunctions ( void )

Devuelve una lista de las funciones definidas en el objecto SoapServer. Este método devuelve la lista de todas las funciones añadidas por SoapServer::addFunction() o SoapServer::setClass().

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Un array de las funciones definidas.

Ejemplos

Ejemplo #1 Ejemplo de 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 
"Este servidor SOAP puede manejar las siguientes funciones: ";
  
$functions $server->getFunctions();
  foreach(
$functions as $func) {
    echo 
$func "\n";
  }
}
?>

Ver también



add a note add a note User Contributed Notes SoapServer::getFunctions - [1 notes]
up
-1
mariuz at gmail dot com
4 years ago
example for amazon webservice

<?php

$wsdl_url
=
 
"http://soap.amazon.com/schemas3/AmazonWebServices.wsdl";
$client     = new SoapClient($wsdl_url);
var_dump($client->__getFunctions());

?>

 
show source | credits | sitemap | contact | advertising | mirror sites