Hi Peter...

Just to clarify: You want to use EGL to write a web service, that you will
consume with an RPG program using HTTPAPI?

If this is the case, you can use EGL to write a web service that accesses
files on SQL Server...but from reading your email, I'm guessing you want to
read the directory that the files are in, and check their timestamps?

You may not need a web service for this...I recall there may be a way to
read a (Windows) directory from an RPG program...I have to do some digging,
but think I can find an example.


-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of Colpaert, Peter
Sent: Wednesday, June 23, 2010 4:45 AM
To: EGL-i (egl-i@xxxxxxxxxxxx)
Subject: [EGL-i] Can this be done in EGL?

Hi Group,

I've been asked to look into a possible use of EGL as a web service in our

What we need is the following.

Our RPGLE application residing (of course) on the iSeries would call a web
service to check the timestamp of one or more files that reside on a windows
server (\\server\folder\file.ext<file:///\\server\folder\file.ext> paths
will be provided from the RPGLE). I would use HTTPAPI from Scott Klement,
of course.

The web service would then return the timestamps - if the files are found -
or a "no file" indication.

I already looked at some of the examples available in EGL café, but either
I'm not searching well, or there are no examples of EGL accessing or
retrieving information from files that have not been explicitly identified
in the project itself.

Any input would be highly appreciated, even if it is just "sorry, can't be
done in EGL".

Thanks in advance,

Peter Colpaert
Software Engineer - PLM Development Team
Philips Consumer Luminaires
Tel: (+32) 3/459 13 17
Fax: (+32) 3/450 74 33
Address: Industrieterrein Satenrozen 11, 2550 Kontich, Belgium
Email: Peter.Colpaert@xxxxxxxxxxx

The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended
recipient, please contact the sender by return e-mail and destroy all copies
of the original message.

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].