Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by jens · Feb 27, 2018 at 06:18 AM · elektronelektron apielektron connecttr contribution channel

Elektron Message API - Consumer Tutorial - Posting data to TR Contribution Channel

I'm currently trying to develop an app for Contributed Channels. As a start I use 'Elektron Message API - Consumer Tutorial - Posting data to TR Contribution Channel' from https://developers.thomsonreuters.com/elektron/elektron-sdk-cc/downloads to test out connectivity.


In EmaConfig.xml I have Host as chp02-emea1.thomsonreuters.com and Port as 443.

In the program I use OmmConsumer consumer(OmmConsumerConfig().username(Account Number).position(Machine ID1)); The bold parameters is the one from CONTRIBUTIONS CHANNEL ORDER DETAILS


But it only return: Exception Type='OmmInvalidUsageException', Text='login failed (timed out after waiting 45000 milliseconds) for chp02-emea1.thomsonreuters.com:443)'

I have tried the B-side: chp02-emea2.thomsonreuters.com but with the same result.

Could you please tell help me figure out what I'm doing wrong as I assume that the host is running as it should and the error is about something else

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Dominic.Allison · Feb 28, 2018 at 04:44 AM

Jens,

Please can you use the following addresses for a windows client;

chpw02-emea1.thomsonreuters.com

chpw02-emea2.thomsonreuters.com

Comment

People who like this

0 Show 2 · 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
jens · Feb 28, 2018 at 04:53 AM 0
Share

Thanks @Dominic.Allison

That worked

avatar image
jens · Feb 28, 2018 at 04:57 AM 0
Share

@Dominic.Allison

Could you help me with the correct setting for this call:

OmmConsumer consumer(OmmConsumerConfig().username(xx).position(yy));

When I got this from:

YOUR CONTRIBUTIONS CHANNEL ORDER DETAILS
Account Number:xx
Machine ID1:yy
Password:zz

avatar image
REFINITIV
Answer by Gurpreet · Feb 27, 2018 at 02:02 PM

Hi @jens, I tried the contributions sample from downloads section, connecting to chp02-eap-emea1.thomsonreuters.com:443, with my credentials and was able to successfully login and contribute.

Can you please recheck your credentials and the contributed item name.

AppClient::OnRefreshMsg :: RefreshMsg
    streamId="1"
    domain="Login Domain"
    Solicited
    RefreshComplete
    ClearCache
    state="Open / Ok / None / 'Refresh Completed'"
    itemGroup=""
    name="****"
    nameType="1"
    Attrib dataType="ElementList"
        ElementList
            ElementEntry name="SingleOpen" dataType="UInt" value="1"
            ElementEntry name="AllowSuspectData" dataType="UInt" value="1"
            ElementEntry name="ProvidePermissionExpressions" dataType="UInt" value="1"
            ElementEntry name="ProvidePermissionProfile" dataType="UInt" value="1"
            ElementEntry name="SupportBatchRequests" dataType="UInt" value="1"
            ElementEntry name="SupportOptimizedPauseResume" dataType="UInt" value="0"
            ElementEntry name="SupportOMMPost" dataType="UInt" value="1"
            ElementEntry name="SupportEnhancedSymbolList" dataType="UInt" value="1"
            ElementEntry name="SupportViewRequests" dataType="UInt" value="0"
            ElementEntry name="ApplicationId" dataType="Ascii" value="256"
            ElementEntry name="ApplicationName" dataType="Ascii" value="ema"
            ElementEntry name="Position" dataType="Ascii" value="10.116.81.181/net"
        ElementListEnd

    AttribEnd
RefreshMsgEnd

AppClient::OnStatusMsg :: StatusMsg
    streamId="5"
    domain="System Domain"
    PrivateStream
    ClearCache
    state="Open / Ok / None / ''"
    name="****"
    serviceId="10"
    serviceName="****"
StatusMsgEnd

Are you trying this sample from Linux machine?

Comment

People who like this

0 Show 2 · 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
jens · Feb 28, 2018 at 03:51 AM 0
Share

I'm using a windows machine.

It never gets to consumer.registerClient, so AppClient is not register yet. It except with the mention exception on OmmConsumer consumer(OmmConsumerConfig()....

So it either something with the connection or the login. From Reuters I got:

YOUR CONTRIBUTIONS CHANNEL ORDER DETAILS
Account Number:xx
Machine ID1:yy
Password:zz

I quessed where to place it:

OmmConsumer consumer(OmmConsumerConfig().username(xx).position(yy));

avatar image
jens · Feb 28, 2018 at 03:52 AM 0
Share

Password I send though (linux):

./dacsObfuscateLogin -e zz

And the result I put into elmList.addAscii("Password", "qqqqq").complete(); in onStatusMsg it never get to this point as stated above the AppClient is never register.

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · Feb 28, 2018 at 04:16 AM

@jens

Currently the C++ versions of ETA and EMA on the Linux platform offer this functionality. It mentioned in the Tutorial.

It does not works on windows.

Comment

People who like this

0 Show 3 · 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
jens · Feb 28, 2018 at 04:21 AM 0
Share

I'm a bit confused. Does "Elektron SDK - C/C++ - 1.1.1 - Windows" not run on windows platform? There is a complete library for ETA and EMA for windows.

I know dacsObfuscateLogin dosn't work on windows, why I used linux to get the password encode. But should contribution to TRCC not work from windows using "Elektron SDK - C/C++ - 1.1.1 - Windows"?

Ok I see now the sample is for Linux, but does that mean that TRCC can only be used from Linux?

avatar image
REFINITIV
Dominic.Allison jens · Feb 28, 2018 at 04:55 AM 1
Share

We will provide a windows version of the sample application and obfuscation tool shortly

avatar image
REFINITIV
moragodkrit.chumsri_1 ♦♦ jens · Feb 28, 2018 at 05:00 AM 1
Share

@jens

As far as I understand EMA Tunnel Stream on Windows and Linux using difference library for connecting to the TRCC server. Hence EMA requires specific version of server which support the library used by EMA on windows. At the time we create the example, it does not have windows version of TRCC server available. I think there is the reason that you have to use difference server for windows client.

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 >
10 People are following this question.

Related Questions

C# Wrapper of MRN C++ tutorial step 5

Is it possible to get a list of all instruments available for subscription on Reuters Elektron?

[JAVA EMA] Alternative to Posting data to TR Contribution Channel

We are getting error while starting APP using EMA like text: Acronym mismatch "PRE_2ET014" and "TRD_P_CCY" between Field Dictionary and Enum Type Dictionary? Can someone share any thoughts on this?

fatal error RC1015: cannot open include file 'afxres.h'

  • 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