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



I've decided to just work with Node and itoolkit.js on Windows. I was able to make a connection to the IBM i, but had problems with the iCmd class. I started another email thread, but I'm waiting to see the results of trying to include JS code in an email to the listserv.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com>

From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: Wednesday, March 21, 2018 11:05 PM
To: web400@xxxxxxxxxxxx
Subject: [EXTERNAL] Re: [WEB400] Node Toolkit for i on a Windows Server

Should work possibly.

You'll need to configure the CGI service and a web instance on i so that you can hit XMLSERVICE remotely via the selected Apache instance port.

------------------------------

message: 4
date: Thu, 22 Mar 2018 00:12:51 +0000
from: Kelly Cookson <KCookson@xxxxxxxxxxxx<mailto:KCookson@xxxxxxxxxxxx>>
subject: [WEB400] Node Toolkit for i on a Windows Server

I know this will probably raise the question "Why?" But...

I came across an article that says you can run JavaScript in the Windows OS and in the Microsoft IIS web server:
https://www.codeproject.com/Articles/831752/JavaScript-for-Windows-server-side<https://www.codeproject.com/Articles/831752/JavaScript-for-Windows-server-side>
I tried the first hello world example on my laptop and it worked. I need to see if I can get my JS scripts to run in IIS.

Given that we have XMLSERVICE up and running on our IBM i, could I:

1. Copy the itoolkit.js from the IFS into a directory on my laptop.

2. Write a JS script that requires itoolkit.js and, say, calls a CL program with the iPgm class.

3. Run that JS script on my laptop via Windows or the Microsoft IIS web server (no use of Node).

In theory, would this work? I do not want explore this possibility if it cannot possibly work. I would rather just know it is impossible up front-and why.

I'm also looking at the iisnode module to run Node apps in Microsoft IIS:
https://www.simplymigrate.com/2017/04/11/internet-information-server-iis-node-js-in-producton-iisnode/<https://www.simplymigrate.com/2017/04/11/internet-information-server-iis-node-js-in-producton-iisnode/>
This becomes much more interesting if my Node app can use itoolkit.js to remotely access IBM i resources analogous to the way a Java app using jt400.jar can remotely access IBM i resources.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com><http://www.dotfoods.com<http://www.dotfoods.com>>


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