Witam wszystkich forumowiczów. Nie często proszę o pomoc.. tylko kiedy wszystkie próby zawiodą

Mam taki skrypt:
<?php
/* UWAGA: W przykładzie pominęto obsługę błędów! */
$hClient = new nusoap_client
( 'http://xxx.xxxxxxxx.xx/ade_webapi.php?wsdl', array( 'encoding'=>'UTF-8' ) ); $hClient -> soap_defencoding = 'utf-8';
$hClient -> decode_utf8 = FALSE;
$aCMsg = array( 'user_name' => 'moj_user', 'user_password' => 'moj_passwd' ); $aClient = $hClient->call( 'adeLogin', $aCMsg );
$szSession = $aClient[ 'session' ];
$aCMsg = array( 'session' => $szSession, 'number' => '62000000519' ); $aClient = $hClient->call( 'adePickup_ParcelNumberSearch', $aCMsg );
// output ->
// Array (
// [rname1] => Pan
// [rname2] => Jan
// [rname3] =>
// [rcountry] => PL
// [rzipcode] => 00-950
// [rcity] => Warszawa
// [rstreet] => ul. Kwieciska 15
// [rphone] => 1500-100-900
// [rcontact] => Antoni
// [references] => by WebAPI
// [notes] => by Thomi (thest 4)
// [quantity] => 2
// [weight] => 16.00
// [date] => 2012-09-17
// [srv_ade] => COD 200.00PLN
// [srv_bool] => Array (
// [cod] => 1 [cod_amount] => 200.00 [exw] => 0 [rod] => 0 [pod] => 0 [exc] => 0 [ident] => 0 [daw] => 0 [ps] => 0 [pr] => 0 [s10] => 0 [s12] => 0 [sat] => 0 [ow] => 0 [srs] = 0)
// [parcels] => Array (
// [0] => Array ( [number] => 62000000519 [reference] => paczka duza [weight] => 15.00 [srv_ade] => COD 200.00PLN
// [srv_bool] => Array ( [cod] => 1 [cod_amount] => 200.00 [exw] => 0 [rod] => 0 [pod] => 0 [exc] => 0
// [ident] => 0 [daw] => 0 [ps] => 0 [pr] => 0 [s10] => 0 [s12] => 0 [sat] => 0 [ow] => 0 [srs] = 0) )
// [1] => Array ( [number] => 62000000520 [reference] => paczka mala [weight] => 1.00 [srv_ade] => COD
// [srv_bool] => Array ( [cod] => 1 [cod_amount] => [exw] => 0 [rod] => 0 [pod] => 0 [exc] => 0
// [ident] => 0 [daw] => 0 [ps] => 0 [pr] => 0 [s10] => 0 [s12] => 0 [sat] => 0 [ow] => 0 [srs] = 0) )
// )
// )
$aCMsg = array( 'session' => $szSession ); $aClient = $hClient->call( 'adeLogout', $aCMsg );
?>
Chcę wyciągnąć informacje o paczce z api gls ale po poprawnym połączeniu z serwerem spotkałem się z takim błędem:
Notice: Undefined index: session in C:\WebServ\httpd\gls_info.php on line 13
Array ( [faultcode] => err_sess_not_found [faultstring] => num: 62000000519 [faultactor] => adePickup_ParcelNumberSearch [detail] => )
Powyższy przykład pochodzi ze strony dokumentacji api gls'u..
Nie mam pojęcia jak to ugryźć.. ktoś pomoże?