Using a Proxy to Call a REST Service
1 Introduction
In some cases, you will be stuck behind a firewall and unable to call a REST service directly. This page shows you how to configure your app to use a proxy to call such services.
2 Proxy Host and Proxy Port
There are two parameters that specify which proxy server to use when making REST calls:
http.proxyHost
http.proxyPort
Some proxies require authentication, which you may specify as http.proxyUser
and http.proxyPassword
. You can either specify these as custom settings or as JVM parameters, which are described in the sections below.
2.1 Custom Settings
REST proxy settings can be configured as custom settings on the App > Settings > Configurations > Custom tab. For more information, see the Custom section of Configurations.
2.2 JVM Parameters
REST proxy settings can be configured in the App > Settings > Configurations > Server tab > Extra JVM parameters field. For more information, see the Server section of Configurations.
They can also be specified as JVM parameters in your .m2eerc. This is useful if you want to use these settings to consume web services.
|
|
They can also be specified directly when running locally from Studio Pro or calling from Eclipse:
|
|
Feedback
Was this page helpful?
Glad to hear it! Thank you for your response.
Sorry to hear that. Please tell us how we can improve.