Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
REFINITIV
Question by Steven McCoy · Jun 01, 2016 at 04:32 PM · restdss-sdk

How to use DSS/REST API examples behind a proxy?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Steven McCoy · Jun 01, 2016 at 04:36 PM

The examples need to be modified to create a HttpClient that respects the Java system properties for HTTP proxies and then the system properties need to be defined upon execution.

HttpClient httpClient = HttpClientBuilder.create().useSystemProperties().build();
// or
HttpClient httpClient = HttpClients.createSystem();

Execute the Java application with the following additional properties:

-Dhttps.proxyHost=<proxy hostname or ip>-Dhttps.proxyPort=<proxy port>

Example:

java -Dhttps.proxyHost=10.86.33.20 -Dhttps.proxyPort=80 -jar app.jar
Comment
Christiaan Meihsl
zoya.farberov
Mariano Neves da Rocha

People who like this

3 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Rick Weyrauch · Jun 02, 2016 at 09:35 AM

For the .Net Sample app, if the system default proxy does not work, you can force a specific proxy by adding this to the app.config file (using your proxy values of course):

<configuration>
...
    <system.net>
        <defaultProxy>
            <proxy usesystemdefault="True" proxyaddress="http://127.0.0.1:8888" bypassonlocal="True" />
        </defaultProxy>
    </system.net>
</configuration>


Comment
Christiaan Meihsl

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by nextersen · Aug 17, 2016 at 05:15 AM

I had the same problem with my new proxy provider, this may be a problem with the provider, or is it my settings? thank you in advance

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Aug 17, 2016 at 08:11 AM 0
Share

@nextersen

Proxy settings depend on what program or language you are using. The answers above explain how to setup the proxy parameters for Java and .Net.

Assuming your proxy parameters are correct (you can get them from your provider or local IT administrator), you should be able to connect fine. Proxy parameters are usually an IP address (or hostname) and a port. In some cases there might also be a username and password.

If you still need help, please give more details on your environment and setup.

avatar image
REFINITIV
Answer by Troy Dalldorf · Aug 31, 2016 at 07:16 PM

Version 10.6 of the .Net SDK supports setting the proxy on the context. For example:

context.Options.Proxy = new WebProxy("127.0.0.1", 8888);
Comment
Christiaan Meihsl

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
6 People are following this question.

Related Questions

What content is available in the DSS GUI but not in the REST API?

DSS REST API StatusCode 400 response

Example of usage of Java Rest ExtractRaw for Iso Corporate Actions

Use chain rics in the REST API

Immediate extraction using existing Instrument Lists and Report Templates using REST APIs

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges