Or have them establish a web service that you can call to notify of completion.

Jon Paris


On May 12, 2017, at 1:06 PM, Richard Schoen <Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

In my mind you're violating the premise of a web service.

You should never try to hold an HTTP exchange very long. (30-60 seconds max)

Service calls should be quick in and out conversations.

If your client needs to submit a job, submit the job and return a job id right away to the consumer.

Then give them an API to watch for completion by polling and making calls every xx seconds or minutes.

Once complete they can pick up their file or whatever other data they need.


Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com


message: 1
date: Fri, 12 May 2017 13:29:34 +0000
from: Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
subject: [WEB400] Long-running webservice, options?

I have an internal RPG/CGI webservice that in extreme cases can take 20 minutes to process a request (19+ minutes waiting on external services). Our Windows team (the consumers) right now is just waiting for the webservice to respond, but they want me to change my service to send a notification when it completes.

I can't think of a good way to do this.

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 On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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