Alan, thanks. I am making progress. You were correct about my not
having the require once statement. My connection works, but now I am
having a hard time calling my program. I get the following:


Error calling program. Code: MCH3401 Msg: Cannot resolve to object
KLEINMAN. Type and Subtype X'0401' Authority X'0000'. Either a system
pointer or a data pointer can not be resolved. For a system pointer, it
can not be resolved to object KLEINMAN, type and subtype X'0401',
authorization X'0000', because either the named object was not in any
context referred to or the correct object was located but the user profile
did not have the required authority. The object types for some common type
or subtype codes follow: -- 0190-Access group, 0201-Program, 0401-Library,
-- 0701-Journal receiver, 0801-User profile, 0901-Journal, -- 0B90-Data
space, 0C01-Directory, 0C90-Data space index, -- 0E01-Job queue,
0E02-Output queue, 0E03-Message file, -- 0E02-User index, 0A01-Data queue,
1401-Class of service description -- 1501-Mode description, 0E05-Session
description, -- 1001-Device description, 1101-Line description, --
1201-Controller description, 1901-File, 1902-Message queue, -- 1903-Job
description, 1904-Class, 1905-Command, 1906-Table, -- 1908-Edit
description, 1909-Subsystem description, -- 190A-Data area, 190C-Graphic
symbol set, 190D-Chart format, -- 1911-Query definition, 1912-Folder, --
1915-Panel group, 1916-Menu group description, -- 1920-Data dictionary,
192D-Management collection, 19D0 Work control block table, -- 19D2-System
value, 1B01-Process control space, -- 1E01-Byte stream file, 1E03-Local
socket, 1E06-Character special file, -- 1E07-First-in first-out special
file For a data pointer, it can not be resolved because the named object
is not located within any program activation currently known to the
process. Either specify the correct object name or specify the correct
authority for the object

Here's the relevant code


$params[] = $conn->AddParameterPackDec('both', 6, 0, 'Number', 'NUM',
'4401');
$params[] = $conn->AddParameterPackDec('both', 7, 2, 'Quantity', 'AMT',
'0');


$result = $conn->PgmCall('ZSR001', 'KLEINMAN', $params);



I am connecting with a user profile that has *ALLOBJ authoruty (just doing
this in testing or course), so I don't think it is an authority issue. And
the library KLEINMAN exists, although it may not be in the LIBL.



Larry Kleinman
Kleinman Associates, Inc.
212-949-6469




From: Alan Seiden <alan@xxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Cc: WEB400 <web400-bounces@xxxxxxxxxxxx>
Date: 08/26/2014 01:06 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>



Larry, here's a sample that might get you started. I am providing this
one because it's complete, has error checking on the connect, and has
the "require_once" statement that you are probably missing now. Remove
the references to procedures/functions/return variables if they don't
apply to your program.
http://www.alanseiden.com/2012/12/27/service-program-procedures-with-php-toolkit-for-ibm-i/


Best,
Alan
--
*Alan Seiden Consulting LLC*
PHP for IBM i expertise and advocacy

*Learn high-performance PHP on IBM i:*
* Let your Apps Fly with PHP on IBM i
<
http://iprodeveloper.com/let-your-php-apps-fly-ibm-i-high-performance-php-demand?promo=WP003XOE




Project leader, Zend PHP Toolkit for IBM i
Zend Framework certified contributor

Office: 201-447-2437 Cell: 201-248-4704
http://www.alanseiden.com | alan@xxxxxxxxxxxxxx
http://twitter.com/alanseiden


Larry Kleinman wrote:
Thanks for the links. I am still having a problem. First off, I don't
see any samples at all. Nothing is in zendsvr6/htdocs except
index.html,
dummy.php, and two Zend5250 directories. Also, i get a "class not
found"
message for $ToolkitServiceObj = ToolkitService::getInstance($db,
$user,
$pass);

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469




From: Mike Pavlak<mike.p@xxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 06:32 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>



And here:

https://www.zend.com/en/user/login?redirect=/en/webinars/recorded/show/293
_the+php+toolkit+from+zend+and+ibm

And here:https://github.com/zendtech/IbmiToolkit

And here:http://www.alanseiden.com/toolkit/

And more information available at the following events, maybe near you?

Hands On Workshops:
http://www.omniuser.org/TechConf2014Reg.html
http://systemideveloper.com/summit/conferences.html
http://www.data3.se/?page_id=2710

Presentations:
http://zendcon.com/
http://www.common.org/index.php/fall-conference-and-expo.html


Regards,

Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry
Kleinman
Sent: Monday, August 25, 2014 3:16 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserer toolkit

Thanks. Just what I was looking for


Larry Kleinman
Kleinman Associates, Inc.
212-949-6469




From: Michael Ryan<michaelrtr@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 03:08 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>



And maybe this specifically for the Toolkit...

http://files.zend.com/help/Zend-Server-6.3-IBMi/zend-server.htm#php_toolki
t_xml_service_functions.htm



On Mon, Aug 25, 2014 at 2:36 PM, Larry Kleinman<larry@xxxxxxxxxxxxxxxxx>
wrote:

Hi - I have been using Zend Server for years but am finally going to
switch from the i5_ functions to the tool kit that is part of the
basic software. I can not find the documentation anywhere on the Zend
site
that
tell me how to do simple stuff like calling an RPG program. Can
someone
point that out to me?

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email:WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email:WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email:WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.