我想将货运跟踪 api 集成到我们的网站中,我正在使用https://www.aramex.com/solutions-services/developers-solutions-center/apis,但出现错误(ClientInfo - 无效的帐户信息)。但信息是正确的。PS:我正在使用以下 php 脚本。
<?php
$soapClient = new SoapClient('Tracking.wsdl');
$params = array(
'ClientInfo' =>array(
'AccountCountryCode' => 'JO',
'AccountEntity' => 'AMM',
'AccountNumber' => 'XXXXXX', // replace with our
'AccountPin' => 'XXXXXX',
'UserName' => 'XXXXXXXX@aramex.com',
'Password' => 'XXXXXXXXXX',
'Version' => 'v1.0',
'Source' => null
),
'Transaction' => array(
'Reference1' => '001'
),
'Shipments' => array(
'XXXXXXXXXXXXXXXXXXXX'
)
);
// calling the method and printing results
try {
$auth_call = $soapClient->TrackShipments($params);
echo "<pre>"; print_r($auth_call); die;
} catch (SoapFault $fault) {
die('Error : ' . $fault->faultstring);
}
?>
结果