Php 尝试调用ASP中开发的Web服务并以数组形式发送参数时,Zend Rest客户端出现问题

Php 尝试调用ASP中开发的Web服务并以数组形式发送参数时,Zend Rest客户端出现问题,php,web-services,zend-framework,Php,Web Services,Zend Framework,我调用了一个使用ASP开发的Web服务: $endpoint = Zend_Registry::get('config')->endpoint->services->myService; $client = new Zend_Rest_Client($endpoint); $client->userId($adminUserId); $client->otherIds($otherIds); $result = $client->get(); 但是当我尝

我调用了一个使用ASP开发的Web服务:

$endpoint = Zend_Registry::get('config')->endpoint->services->myService;

$client = new Zend_Rest_Client($endpoint);
$client->userId($adminUserId);
$client->otherIds($otherIds);

$result = $client->get();

但是当我尝试调用服务时,WS没有使用参数“otherID”。

这是因为第一个调用的函数(正如我从源代码中所看到的)显然是为“method”参数选择的。Zend REST服务器似乎采用这种格式。我建议其他服务器向客户机提供一个虚拟方法,因此第一个调用应该是

$client->Dummy();

然后,设置参数。

这是因为第一个调用的函数(正如我从源代码中所看到的)显然是为“method”参数选择的。Zend REST服务器似乎采用这种格式。我建议其他服务器向客户机提供一个虚拟方法,因此第一个调用应该是

$client->Dummy();
然后,设置参数