Placing an http call in the code..

Posted by OctavioOlguin on 16-May-2017 13:47

A quick and dirty question, hope someone gets it...  My web team is asking my 4gl app to call a nodejs address, so they fire some messaging at some event inside my system.  How would I program an HTTP call, just to send parameters to nodejs?

All Replies

Posted by Peter Judge on 16-May-2017 13:51

From 11.5.1 onwards you can use the HTTP Client that’s in the box.
 
There’s a relatively simple eg at github.com/.../get_applications.p

Posted by OctavioOlguin on 17-May-2017 15:38

I get error on all but last USINGs....  11.7

It states that can't find class: OpenEdge.Net.HTTP.Client.AppBuilder...

Whats the .pl that should be present? or why is this problem?

Posted by Mike Fechner on 17-May-2017 22:16

You'll have to add %DLC%\gui\netlib\OpenEdge.net.pl to the PROPATH.

Posted by marian.edu on 18-May-2017 01:02

Just for completeness this doesn’t mean you can’t do it if somehow left behind… sockets were introduced in 4gl back to 9.1A, making simple http requests is not rocket science ;)


Marian Edu

Acorn IT 
+40 740 036 212

This thread is closed