[progress Communities] [progress Openedge Abl] Forum Post: Https Rest Request Viaproxy...

  • Thread starter Thread starter cSocaciu
  • Start date Start date
Status
Not open for further replies.
C

cSocaciu

Guest
Hello All, I'm using OE 1.5.1. I need to get the data from a rest service that that uses https. USING System.*. DEFINE VARIABLE HttpClient AS CLASS System.Net.WebClient. DEFINE VARIABLE webResponse AS LONGCHAR NO-UNDO. FIX-CODEPAGE (webResponse) = "UTF-8". HttpClient = NEW System.Net.WebClient(). HttpClient:Proxy:Credentials = System.Net.CredentialCache:DefaultNetworkCredentials. /* call CashPro Flow - guaranteed FX Rates REST API*/ webResponse = HttpClient:DownloadString(" SomeCompanyURL/.../10") . HttpClient:Dispose(). DELETE OBJECT HttpClient. /* save as local file*/ COPY-LOB FROM webResponse TO FILE ('c:/temp/webResponse.txt') NO-CONVERT. I get the following error: "System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel." I have received a certificate and a password certificate from the company and imported that certificate into "Trusted root certification authorities". Using the export option I have exported all the required certificates in the certificate chain and imported them via "certutil" utility in the OpenEdge certs folder. When I enter the same URL in my browser I'm able to see the requested data. If I make a call to another https rest service from openedge I can download the data "webResponse = HttpClient:DownloadString(" postman-echo.com/.../now")." Can anyone give me some suggestions on how to debug the SSL connection? I have tried Fiddler with no success. I cannot "openssl s_client connect" because I'm behind a corporate proxy that requires NTLM authorization. I can only access this https URL from a determined list of Ip addresses all within the corporate network. Any help is greatly appreciated!

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