[progress Communities] [progress Openedge Abl] Forum Post: Re: Openedge.net Http Request -...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello, Yes, technically, you should be able to use sockets and use a read-response callback to implement asnyc functionality. However, since sockets is a low level functionality, you would need to implement the HTTP protocol and it would take some work to do HTTPS and authentication. Also, you need to consider and test what happens when the callback is called and the user is entering data or interacting with a widget. It might be possible that the UI is not prepared for this behavior. Here is an old example from the the Knowledge Base: knowledgebase.progress.com/.../20011 You can also find this example at src/samples/sockets/HTTP/ if you have installed the samples for OpenEdge. This is a simple example that shows an implementation of HTTP which can give you an idea on how to get started implementing this. With this program, I was able to type in the text editor while the request was executing in the background. You can try the following URLs to access data return as REST (using dynamic WebSpeed service in OpenEdge 11.6): oemobiledemo.progress.com/.../State oemobiledemo.progress.com/.../Order When working with sockets, you need to check what type of WAIT-FOR you want to use, the example, uses WAIT-FOR GO OF CURRENT-WINDOW, but in other cases, you may want to use WAIT-FOR READ-RESPONSE OF hSocket or even WAIT-FOR CLOSE OF THIS-PROCEDURE. Working with one active WAIT-FOR is simpler. There might be more advanced examples around. I hope this helps.

Continue reading...
 
Status
Not open for further replies.
Back
Top