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 James.Shen · Dec 03, 2015 at 03:42 PM · elektronconsumer

Comsumer example 370

Among most of the Elektron consumer examples, most of the ReqMsg have not set domain. I mean ReqMsg::domainType() functions, Why?

btw. the following code crash, could anyone take a look? Thank!

OmmArray RicList;

RicList.addAscii( "TRI.N" ).addAscii( "AAPL.O" ).complete();

OmmArray FieldList;

FieldList.fixedWidth( 2 ).addInt( 21 ).addInt( 22 ).addInt( 25 ).complete();

ReqMsg MyReqMsg;

MyReqMsg.serviceName( "EED_DELAYED" )

.payload( ElementList().addArray( ":ItemList", RicList )

.addUInt( ":ViewType", 1 ).addArray( ":ViewData", FieldList)

.complete() );

MyReqMsg.domainType();

auto domaintype=

MyReqMsg.getDomainType();// this line crash

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by veerapath.rungruengrayubkul · Dec 03, 2015 at 10:24 PM

The default value of domainType in the ReqMsg is MarketPrice(6), so there is no need to set domain for MarketPrice request message.

With regard to the crash issue, I'm able to replicate the issue in our application. However, this usage of ReqMsg is not supported. The EMA Reference Manual document states in the description of ReqMsg class that decoding of just encoded ReqMsg in the same application is not supported.

Please see the following screenshot for the reference.


reqmsg.png (35.0 KiB)
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
James.Shen · Dec 15, 2015 at 05:39 AM 0
Share

Thanks, I got it.

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

Related Questions

Is it possible to enable Hex tracing in EMA C++?

How is it possible to obtain static data information pertaining to certain security?

I need to move the parameters of OmmConsumerConfig(0 into a configuration file. I understand that the username is of type const thomsonreuters::ema::access::EmaString. How can I convert a cpp string to that data type?

NIProvider using RSSL_SOCKET over SSL: unable to publish data

visual studio static link to libema.lib error:

  • 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