I create the connection for some SQL queries:
$conn = db2_pconnect($DataBase, $User, $PassWord);
My SQL stuff works fine with this connection, however when I try to call a program:
$ToolkitServiceObj = ToolkitService::getInstance($conn);
$ToolkitServiceObj->setToolkitServiceParams(array('stateless'=>true));
$params[] = $ToolkitServiceObj->AddParameterZoned('both',8,0,'Date','TESTDATE','0');
$result = $ToolkitServiceObj->PgmCall('GET3DAYS3','SWAAPP',$params,null,null);
I get "XML run loop failed (p(54)"
I admit I'm new to Zend but I'm not seeing my problem. Any help would be tremendously appreciated.
PgmCall question
Re: PgmCall question
Hi, Mike,
Your PHP code looks good. If you'll create a debug log then we can see what's wrong.
Turn on the debug log at any point before the program call:
Run your script, then look for the debug.log file in /usr/local/zendsvr6/var/log/debug.log. Post the log here on the forum and we'll help figure out what's wrong.
-- Alan Seiden
Your PHP code looks good. If you'll create a debug log then we can see what's wrong.
Turn on the debug log at any point before the program call:
Code: Select all
$ToolkitServiceObj->setOptions(array('debug'=>true)); // setOptions is an alias for setToolkitServiceParams
-- Alan Seiden
Re: PgmCall question
I have this problem too....
Re: PgmCall question
I have this problem too.
Re: PgmCall question
This "XML run loop failed (p(54)" is a truly pain.
I used to get it all the time.
Try the procedure aseiden recomended (it wordked or me).
I used to get it all the time.
Try the procedure aseiden recomended (it wordked or me).