PHP: FedEx Web Services -


i'm trying track number uses fedex, can't series of events shown in website. i'm using track web services , using test key. i'm using

$response->completedtrackdetails->trackdetails->events 

which gives me first step (out of total of 9). please, doing wrong.

i'm not sure how you're parsing xml response, need loop thru trackreply->trackdetails->events

something this...

$scancount = substr_count ($response, '<events>') ; $xmlresult = xml2array($response);  if ( $scancount > 1 ) {  ( $i=0 ; $i < $scancount ; $i++) {     $status=$xmlresult['trackreply']['trackdetails']['events'][$i]['eventdescription']['value']; // addl parsing... } } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -