× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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)

2015-10-28 15:20 GMT-06:00 Jeffry Torres <torres.jeffry26@xxxxxxxxx>:

I need to remotely connect to the AS / 400 and call pgm . With the tool
Node.js.

2015-10-28 15:15 GMT-06:00 Jeffry Torres <torres.jeffry26@xxxxxxxxx>:

I'm trying with yours example.
[image: Imágenes integradas 1]
I have installed the xmlservice on the AS / 400.

2015-10-28 15:04 GMT-06:00 Aaron Bartell <aaronbartell@xxxxxxxxx>:

Jeffry,

I have no context of what callrpg.js has for content. Can you post the
example you are trying to make work? Otherwise I can't help you.

Again, you need to copy and paste your program into this email thread so
we
can help you.

Aaron Bartell
litmis.com - Services for open source on IBM i


On Wed, Oct 28, 2015 at 3:58 PM, Jeffry Torres <
torres.jeffry26@xxxxxxxxx>
wrote:

Hi Aaron.
I have a question .
when I run my callrpg.js not recognize the module
*/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/itoolkit*.
I need to call PGM from Node.js.


--
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 ...

Follow-Ups:
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.