which type of http communication should I use
Last Post 27 Mar 2013 10:43 AM by Scott Klement. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
JJ Dahlheimer
Advanced Member
Advanced Member
Posts:626

--
27 Mar 2013 10:31 AM

We have a piece of software that is completely web based and it creates reports over our data. One of the functions they have is the ability to run what is essentially a batch job that will compress large data sets down in order to make reports run quicker. It is meant to be run at specified times but the problem is we have a job that does not take place at a specified time so I need to be able to call this web based process from an rpg program at the end of our run. I was able to do it with the httpapi and using the http_url_get method but all that does is download the html file and then my program ends. The process seems to run fine and do everything but taking this route I have no way of knowing for sure if it completed properly. Normally when you run it from the web, it runs and then at the end displays that it completed and gives a small summary. Not sure if I use something different than a get if I will be able to get some kind of confirmation. 

Rocky Marquiss
Senior Member
Senior Member
Posts:2906

--
27 Mar 2013 10:43 AM
I'm not sure I know what you're asking - if it's a job that ideally would run at a given time and is batch - why couldn't you add it to the job scheduler (wrkjobscde)?
Scott Klement
Editorial Staff Member
Editorial Staff Member
Posts:16315
Avatar

--
27 Mar 2013 10:43 AM
In order to answer this, we'd need to know how it works from a browser side.  Does it use JavaScript or similar to determine when process has completed?   If so, how does that JavaScript know?  Does it poll the server with an XHR?   You could try to duplicae that logic in RPG.
You are not authorized to post a reply.

Acceptable Use Policy