Hi Alan. I've followed your instructions here and on the youngiprofessionals xmlservice wiki, and I I'm trying to run the following script (from one of your other posts):
- Code: Select all
require_once('ToolkitService.php');
// connect to db using chosen i5 naming mode
$namingMode = DB2_I5_NAMING_ON; // ON or OFF
$db = db2_connect('10.0.6.25',$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],array('i5_naming' => $namingMode));
// Connect to Zend API, passing db resource and i5 naming mode instead of dbname/user/password.
$conn = ToolkitService::getInstance($db, $namingMode);
I'm getting this message in the debug.log:
Going to create a new db connection.Failed to connect. sqlState: HY009. error: Error occurred in SQL Call Level Interface SQLCODE=-999999
I also cannot run any of the toolkit sample scripts. When I try Call_RPG_example.php, I get the following error in the Zend Server log:
[02-Apr-2012 20:24:16] PHP Warning: include_once(authorization.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: A file or directory in the path name does not exist. in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 10
[02-Apr-2012 20:24:16] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'authorization.php' for inclusion (include_path='.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear:/usr/local/ZendSvr/share/ToolkitApi') in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 10
[02-Apr-2012 20:24:16] PHP Warning: include_once(../API/ToolkitService.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: A file or directory in the path name does not exist. in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 11
[02-Apr-2012 20:24:16] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '../API/ToolkitService.php' for inclusion (include_path='.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear:/usr/local/ZendSvr/share/ToolkitApi') in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 11
[02-Apr-2012 20:24:16] PHP Warning: include_once(helpshow.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: A file or directory in the path name does not exist. in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 12
[02-Apr-2012 20:24:16] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'helpshow.php' for inclusion (include_path='.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear:/usr/local/ZendSvr/share/ToolkitApi') in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 12
[02-Apr-2012 20:24:16] PHP Fatal error: Class 'ToolkitService' not found in /www/zendsvr/htdocs/Samples/Call_Program/Call_RPG_example.php on line 23
IBM i - v6r1
ZendServer - 5.6.0
PHP - 5.3.8-ZS5.5.0
XMLSERVICE RPG source library - 1.6.7
Compatibility Wrapper (CW) and new Toolkit API - 1.2.4
Any idea what the problem could be or what I could check next?