我正在尝试为M / S Dynamics GP使用.NET Web服务(其中 曾经是大平原)并且得到肥皂故障“反序列化操作'GetCashReceiptByKey'的请求消息的主体时出错” [Soap Fault Message] =>指定的类型是abstract:name ='OrganizationKey
以下是我的伪代码:
$options = array('login' => 'loginid',
'password' => 'pwd',
'trace' => TRUE,
'exceptions' => TRUE);
$wsdl = 'http://domain/DynamicsGPService.asmx?WSDL';
$client = new SoapClient ($wsdl, $options);
try
{
$key = array('key' => array('Id' => 'xxxxxxxxxxxxxxx'));
$company_key = array('Id' => 1);
$context = array('Context' => array('CurrencyType' => 'Transactional',
'OrganizationKey' => $company_key));
$param = array_merge($key, $context);
$res = $client->GetCashReceiptByKey($param);
}
catch(SoapFault $soapFault)
{
echo htmlentities($soapFault);
}
请告诉我这里我做错了什么