(PHP 5, PHP 7, PHP 8)
SoapClient::__getFunctions — Retorna uma lista de funções SOAP disponíveis
Retorna um array de funções descritas no WSDL para o serviço Web.
Nota:
Esta função funciona apenas no modo WSDL.
Esta função não possui parâmetros.
O array de protótipos de funções SOAP, detalhando o tipo de retorno, o nome da função e os tipos de parâmetros.
Exemplo #1 Exemplo de SoapClient::__getFunctions()
<?php
$client = new SoapClient('http://soap.amazon.com/schemas3/AmazonWebServices.wsdl');
var_dump($client->__getFunctions());
?>O exemplo acima produzirá:
array(26) {
[0]=>
string(70) "ProductInfo KeywordSearchRequest(KeywordRequest $KeywordSearchRequest)"
[1]=>
string(79) "ProductInfo TextStreamSearchRequest(TextStreamRequest $TextStreamSearchRequest)"
[2]=>
string(64) "ProductInfo PowerSearchRequest(PowerRequest $PowerSearchRequest)"
...
[23]=>
string(107) "ShoppingCart RemoveShoppingCartItemsRequest(RemoveShoppingCartItemsRequest $RemoveShoppingCartItemsRequest)"
[24]=>
string(107) "ShoppingCart ModifyShoppingCartItemsRequest(ModifyShoppingCartItemsRequest $ModifyShoppingCartItemsRequest)"
[25]=>
string(118) "GetTransactionDetailsResponse GetTransactionDetailsRequest(GetTransactionDetailsRequest $GetTransactionDetailsRequest)"
}