SoapClient::__getFunctions
(PHP 5, PHP 7, PHP 8)
SoapClient::__getFunctions — Retorna uma lista de funções SOAP disponíveis
Descrição
public function SoapClient::__getFunctions():
?array
Nota: Esta função funciona apenas no modo WSDL.
Parâmetros
Esta função não possui parâmetros.
Valor Retornado
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.
Exemplos
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)"
}