You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Calling an external REST API via an ADF REST DataControl

edited Apr 3, 2017 7:00AM in Middleware 3 comments

Summary

Calling an external REST API via an ADF REST DataControl

Content

Hi,

I'm using JDev 12.2.1.2.0 and created a small sample which uses an external REST service (e.g. api.spotify.com) to get some data from the service. A REST DataControl in then build from this REST service. Running the application on the integrated wls and/or a stand alone WLS 12.2.1.2 returns the right data. When I run the application on the JCS instance  the REST calls are not working. All I get in hte logs is

Exception in invoking HTTP method GET from Rest data control. Cause: javax.ws.rs.ProcessingException: java.net.ConnectException: Tried all: 3 addresses, but could not connect over HTTPS to server: api.spotify.com port: 443

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!