Is there a REST client in OE now (in 11.5)?
The documentation below talks about the rest adapter for the appserver.
http://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/pdsoe/introducing-openedge-rest.html#
But I want to connect to external rest services from within OE. Is it possible or do I need to create my own (possibly .net)?
Is there a REST client in OE now (in 11.5)?
The documentation below talks about the rest adapter for the appserver.
But I want to connect to external rest services from within OE. Is it possible or do I need to create my own (possibly .net)?
Flag this post as spam/abuse.
Is there a REST client in OE now (in 11.5)?
The documentation below talks about the rest adapter for the appserver.
But I want to connect to external rest services from within OE. Is it possible or do I need to create my own (possibly .net)?
Flag this post as spam/abuse.
Ah OK Peter, thanks for the info.
Any documentation around so I can have a play? - I see in a few of your other posts it's part of the ESAP - is that still available?
Ah OK Peter, thanks for the info.
Any documentation around so I can have a play? - I see in a few of your other posts it's part of the ESAP - is that still available?
Flag this post as spam/abuse.
Thanks Peter, will check this out.
In the mean time I put this together based on some examples on here and elsewhere. This has got me going for now (I didn't want to go down to socket route!)
using System.*. def var HttpClient as class System.Net.WebClient. def var webResponse as longchar no-undo. fix-codepage (webResponse) = "UTF-8". def var appKey as char no-undo initial "MyAppKey". HttpClient = new System.Net.WebClient(). HttpClient:Proxy:Credentials = System.Net.CredentialCache:DefaultNetworkCredentials. HttpClient:Headers:Add("key",'"' + appKey + '"' ). webResponse = HttpClient:DownloadString("http://api.worldbank.org/countries?format=json"). HttpClient:Dispose(). delete object HttpClient. message string(webResponse) view-as alert-box.
Thanks Peter, will check this out.
In the mean time I put this together based on some examples on here and elsewhere. This has got me going for now (I didn't want to go down to socket route!)
using System.*.
def var HttpClient as class System.Net.WebClient.
def var webResponse as longchar no-undo.
fix-codepage (webResponse) = "UTF-8".
def var appKey as char no-undo initial "MyAppKey".
HttpClient = new System.Net.WebClient().
HttpClient:Proxy:Credentials = System.Net.CredentialCache:DefaultNetworkCredentials.
HttpClient:Headers:Add("key",'"' + appKey + '"' ).
webResponse = HttpClient:DownloadString("http://api.worldbank.org/countries?format=json").
HttpClient:Dispose().
delete object HttpClient.
message string(webResponse) view-as alert-box.
Flag this post as spam/abuse.