Using nusoap libraries, I have an array
[MerchantDocumentInfo] => Array
(
[0] => Array
(
[documentID] => 2760322453
[generatedDateTime] => 2010-09-03T16:02:45-07:00
)
)
)
returned from
$documentlist= $t->GetAllPendingDocumentInfo(GOD);
I can 'hard code' the document ID and get the XML document I'm requesting
$order = $t->GetDocument('2761837403'); -- returns requested document info
I'm trying to figure out the code to pass the numeric string as a dynamic value
I've tried numerous syntax unsuccessfully - the last I've tried below
$order = $t->GetDocument($documentlist->MerchantDocumentInfo->documentID);
returns
<b>Notice</b>: Trying to get property of non-object i../MerchantsAPI_test.php</b> on line <b>59</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in ../MerchantsAPI_test.php</b> on line <b>59</b><br />
Does anyone know how to pass the 'documentID' from the array as a variable to the GetDocument function?
Thanks in advance for any suggestions.