php - Aramex Rate calculator APT returning error code "ISE01" -


the aramex rate calculator api returning error code ise01 , and following error message:

internal server error has occurred while getting calculating rate` while requesting

what reason error?

the following sample code aramex rate 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(); ?> 

just download wsdl file, put somewhere on server, , change line correct 1 (fix url!):

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

-

your soap client doesn't recognize calculaterate command without directions...

ps. worked me, tried.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -