虽然似乎soap.amazon.com已被弃用并停止服务,但以下代码对我有用。http://webservices.amazon.com 已取代Amazon的SOAP。
<?php
$client = new SoapClient('http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl');
var_dump($client->__getFunctions());
?>
(PHP 5, PHP 7, PHP 8)
SoapClient::__getFunctions — 返回可用的SOAP函数列表
此函数没有参数。
SOAP函数原型的array,详细说明返回类型、函数名称和参数类型。
示例 #1 SoapClient::__getFunctions() 示例
<?php
$client = new SoapClient('http://soap.amazon.com/schemas3/AmazonWebServices.wsdl');
var_dump($client->__getFunctions());
?>
以上示例将输出
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)" }
虽然似乎soap.amazon.com已被弃用并停止服务,但以下代码对我有用。http://webservices.amazon.com 已取代Amazon的SOAP。
<?php
$client = new SoapClient('http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl');
var_dump($client->__getFunctions());
?>