|
That's my question , where I find that itoolkit on my pc .
Maybe not explain to me in the best way . I configure the user, pass and ip
. When I run from my node js console shows me the following error:
module.js:339
throw err;
^
Error: Cannot find module
'/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/itoolkit'
Sign itoolkit . That's my question , where I find that itoolkit on my pc .
2015-10-28 15:30 GMT-06:00 Aaron Bartell <aaronbartell@xxxxxxxxx>:
Excellent. Now, what error are you getting? In your original email youtorres.jeffry26@xxxxxxxxx>
said "I tried to call a program as400 and I have failed."
Also, did you replace the USER and PASS with your own user profile and
password?
Aaron Bartell
litmis.com - Services for open source on IBM i
On Wed, Oct 28, 2015 at 4:25 PM, Jeffry Torres <
wrote:--
This is the example:--
var xt =
require('/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/itoolkit')
var option = {
host : 'IP'
port : 8000,
path : '/cgi-bin/xmlcgi.pgm'
};
var conn = new xt.iConn('*LOCAL','USER','PASS',option);
var pgm = new xt.iPgm("ZZCALL", {"lib":"XMLSERVICE"})
console.log(pgm);
pgm.addParam("x","1A")
pgm.addParam("x","1A")
pgm.addParam("777.7777", "7p4")
pgm.addParam("7777777777.77", "12p2")
pgm.addParam(
[
["y","1A"],
["y","1A"],
["777.7777", "7p4"],
["7777777777.77", "12p2"]
])
conn.add(pgm.toXML())
console.log(pgm.toXML());
function my_call_back(str) {
var results = xt.xmlToJson(str)
results.forEach(function(result, index){
result.data.forEach(function(data, index2){
console.log("type:" + data.type + " value:" + data.value)
})
})
}
conn.run(my_call_back)
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 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.