Aramex Rate计算器APT返回错误代码“ISE01”

时间:2014-09-23 04:28:11

标签: php shipping aramex

Aramex Rate计算器API返回错误代码ISE01并显示以下错误消息:

  

在请求

时获取计算率时发生内部服务器错误

这个错误的原因是什么?

以下是Aramex费率计算器API的示例代码:

<?php
$params = array(
    'ClientInfo'            => array(
                                'AccountCountryCode'    => 'JO',
                                'AccountEntity'         => 'AMM',
                                'AccountNumber'         => '00000',
                                'AccountPin'            => '000000',
                                'UserName'              => 'user@company.com',
                                'Password'              => '000000000',
                                'Version'               => 'v1.0'
                            ),

    'Transaction'           => array(
                                'Reference1'            => '001' 
                            ),

    'OriginAddress'         => array(
                                'City'                  => 'Amman',
                                'CountryCode'               => 'JO'
                            ),

    'DestinationAddress'    => array(
                                'City'                  => 'Dubai',
                                'CountryCode'           => 'AE'
                            ),
    'ShipmentDetails'       => array(
                                'PaymentType'            => 'P',
                                'ProductGroup'           => 'EXP',
                                'ProductType'            => 'PPX',
                                'ActualWeight'           => array('Value' => 5, 'Unit' => 'KG'),
                                'ChargeableWeight'       => array('Value' => 5, 'Unit' => 'KG'),
                                'NumberOfPieces'         => 5
                            )
);

$soapClient = new SoapClient('http://url/to/wsdl.wsdl', array('trace' => 1));
$results = $soapClient->CalculateRate($params); 

echo '<pre>';
print_r($results);
die();
?>

1 个答案:

答案 0 :(得分:1)

只需下载WSDL FILE,将其放在服务器上的某处,然后更改此行以更正一行(修复网址!):

$soapClient = new SoapClient('http://url/to/wsdl.wsdl', array('trace' => 1));

-

您的SOAP客户端在没有指示的情况下根本无法识别CalculateRate命令...

PS。为我工作,只是尝试过。