Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aramex Rate calculator APT returning error code "ISE01"

The Aramex Rate calculator API is returning the error code ISE01 and and the following error message:

Internal Server Error has occurred while getting calculating rate` while requesting

What it the reason for this error?

The following is the sample code for the Aramex rate calculator API:

<?php
$params = array(
    'ClientInfo'            => array(
                                'AccountCountryCode'    => 'JO',
                                'AccountEntity'         => 'AMM',
                                'AccountNumber'         => '00000',
                                'AccountPin'            => '000000',
                                'UserName'              => '[email protected]',
                                '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();
?>
like image 568
Jethik Avatar asked Nov 11 '22 01:11

Jethik


1 Answers

Just download WSDL FILE, put it somewhere on your server, and change this line to correct one (fix the url!):

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

-

Your SOAP Client simply doesn't really recognize CalculateRate command without directions...

PS. Worked for me, just tried.

like image 193
Flash Thunder Avatar answered Nov 12 '22 18:11

Flash Thunder