Aramex Rate APT calculator returns error code "ISE01"

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

An internal server error occurred while calculating the request speed

What is the reason for this error?

The following is sample code for the Aramex Speed ​​Calculator 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(); ?> 
+5
source share
1 answer

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

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

-

Your SOAP client simply does not recognize the CalculateRate command without instructions ...

PS. Worked for me, just tried it.

+1
source

Source: https://habr.com/ru/post/1203185/


All Articles