OpenEdge.Net.pl

Posted by Rohan Khanna on 02-Jun-2017 03:46

Hi,

I am trying to use OpenEdge.Net.pl file by adding the path of this file to propath as it is not included in propath by default. The path is DLC/tty/netlib/OpenEdge.Net.pl but even after adding the path to propath, compiler is giving below error messages:

Could not find class or interface OpenEdge.Net.HTTP.ClientBuilder. (12886) 
** Could not understand line 4. (196) 
Could not find class or interface OpenEdge.Net.HTTP.IHttpRequest. (12886) 
** Could not understand line 5. (196) 
Could not find class or interface OpenEdge.Net.HTTP.IHttpResponse. (12886) 
** Could not understand line 6. (196) 
Could not find class or interface OpenEdge.Net.HTTP.RequestBuilder. (12886) 
** Could not understand line 7. (196) 
Invalid datatype specified: IHttpRequest. Specify a datatype such as 'character' or the name of a class. (5638) 
** Could not understand line 11. (196)

OpenEdge version - 11.4 and OS - Windows.

I have tried this way in OpenEdge version 11.6 and it did work there, but unable to use this library file in openedge version 11.4. 

Thanks in advance,

Rohan

Posted by gdb390 on 02-Jun-2017 03:58

According to this article, it was only introduced in 11.5.1, so I wouldn't even bother to try even further in 11.4

knowledgebase.progress.com/.../Is-there-an-HTTP-client-for-OpenEdge

Posted by Mike Fechner on 01-Mar-2019 18:46

For the GUI App OS-GETENV probably won't return the DLC folder.

Try

GET-KEY-VALUE SECTION "Startup":U KEY "DLC":U VALUE dlcValue

instead.

All Replies

Posted by gdb390 on 02-Jun-2017 03:49

Instead of the tty version , can you try it with the gui version ?

<DLC>\gui\netlib\OpenEdge.Net.pl

Posted by gdb390 on 02-Jun-2017 03:50

And I think it was only supported from 11.5 SP 1 onwards

Posted by Rohan Khanna on 02-Jun-2017 03:54

No, it is not working

Posted by Rohan Khanna on 02-Jun-2017 03:58

But according to this document it can be used in Openedge 11.4, and why the file is available in openedge version 11.4

www.google.co.in/url

Posted by gdb390 on 02-Jun-2017 03:58

According to this article, it was only introduced in 11.5.1, so I wouldn't even bother to try even further in 11.4

knowledgebase.progress.com/.../Is-there-an-HTTP-client-for-OpenEdge

Posted by Rohan Khanna on 02-Jun-2017 04:22

Thanks for your help....Is there any other method to make rest calls of type 'post' from openedge version 11.4?

Posted by gdb390 on 02-Jun-2017 04:31

in the article I provided , there is a suggestion on how to do it with the WebClient from the System package

Posted by Peter Judge on 02-Jun-2017 08:48

There are language differences (the addition of ENUM types in particular) that makes the 11.6.x code  not work in previous versions.
 
I can’t see any reason why you can’t use the 11.5.1 version in 11.4 though. And in fact, there is a version  in 11.4 already.  That said, there are many major improvements in the 11.6 versions (performance/leaks/etc) and if you can update, then I would.
 
 
 

Posted by tr.staake on 26-Feb-2019 21:43

What are the differences between the tty and gui OpenEdge.Net.pl's should we include both in the propath when looking to use OpenEdge.Net?

Posted by Mike Fechner on 26-Feb-2019 21:48

„should“ be the same. But for TTY sessions and AppServer’s I’d include the tty version. For GUI clients, the GUI version.
 
Adding both makes no sense.

Posted by damienk on 01-Mar-2019 17:20

Hi,

I have errors too, except that I'm using 11.7.4...

On OE STUDIO everyting is fine but when I run my Gui App these errors are raised :

We are using webspeed  too and I was forced to add in my abl code : PROPATH = PROPATH + ";" + OS-GETENV("DLC") + "\tty\netlib\OpenEdge.Net.pl" to make it works with webspeed but this trick doesn't work with my Gui App.

Do you have any idea ?

Posted by Mike Fechner on 01-Mar-2019 18:46

For the GUI App OS-GETENV probably won't return the DLC folder.

Try

GET-KEY-VALUE SECTION "Startup":U KEY "DLC":U VALUE dlcValue

instead.

Posted by damienk on 01-Mar-2019 20:05

Thanks Mike it seems to work.

I'm just wondering why we need to explicitly and dynamically change the PROPATH.

I may have miss something. (maybe we need to wait OE12 ?)

Thank you anyway !

Damien

Posted by Mike Fechner on 01-Mar-2019 20:22

You can also add this to your PROPATH in the progress.ini file or Windows registry.

But this is not a baseade PL file which is added automatically. I don't expect that to change in OE12.

Its like Assemblies for .NET projects. A few are part of the core framework and added automatically. All others are your responsibility.

Sent from Nine

Von: damienk <bounce-damienk@community.progress.com>
Gesendet: Freitag, 1. März 2019 21:06
An: TU.OE.Development@community.progress.com
Betreff: RE: [Technical Users - OE Development] OpenEdge.Net.pl

Update from Progress Community
damienk

Thanks Mike it seems to work.

I'm just wondering why we need to explicitly and dynamically change the PROPATH.

I may have miss something. (maybe we need to wait OE12 ?)

Thank you anyway !

Damien

View online

 

You received this notification because you subscribed to the forum.  To unsubscribe from only this thread, go here.

Flag this post as spam/abuse.

This thread is closed