Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
avatar image
Question by josa · Feb 07, 2017 at 06:29 PM · rfajavatrep api

RDF View Returning all fields

Hi,

Am using RFA view to request data and the response payload contains all 280 fields even when I specified only BID and ASK fields in the request.

I followed the example in BatchViewManager.java. Any idea what am doing wrong.

Regards

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.

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Feb 10, 2017 at 05:45 AM

Hi @josa

The other thing to bear in mind is that, even if your server supports views, there is no guarantee that it will always fulfil a View request.

If you refer to section 13.3.2 of the RFA Java Developer guide (v8.0) it states in one of the paragraphs:

...However it is up to provider to decide how to handle the View. Ideally, the provider sends responses that contain only the fields or elements specified by the View. However, if the provider cannot supply the exact set of requested fields, the provider can send back responses containing additional fields, or all fields. A request for a View is treated as a suggestion by a provider, but does not guarantee that the View will be fulfilled. As a result, the consumer can receive more fields than the view set for which it requested....

So, for example, if the server is too busy serving other users and it determines that filtering the fields for your consumer will negatively impact its ability to serve other consumers, then it will not filter the fields and send you all the fields.

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
josa · Feb 10, 2017 at 10:03 AM 0
Share

Thanks @Umer

avatar image
REFINITIV
Answer by chavalit.jintamalit · Feb 07, 2017 at 07:12 PM

@josa

One of the possible reason might be that the server you connected does not support view feature.
As the view feature requires premium license on the ADS.

It is a good idea to use view feature on API to reduce data being transferred on the network however you should also prepare your code to be able to handle unexpected fields.

Because you will never know that the server you are connecting to, whether it supports view feature or not.

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
TD_BNP · Oct 10, 2017 at 10:22 AM 0
Share

Hello, is it possible that a server handles view request with fid but doesn't handle view request with element name (for example "BID", "ASK"...). Because in my case, the view request with element name doesn't work on the contrary of the view request with fid.

avatar image
REFINITIV
Answer by Pimchaya.Wongrukun · Feb 07, 2017 at 09:55 PM

Hello @josa

Have you contacted Account team, Andrew Forman(andrew.forman@thomsonreuters.com) for the SNAP_AND_DYNAMIC_VIEW license key? The license is required to enable View feature on ADS.

Comment

People who like this

0 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 josa · Feb 08, 2017 at 10:13 AM

Thanks @Pimchaya.Wongrukun. Yes I have contacted Andrew and my license does supports View features.

Would you recomment I use EMA insteag od RFA then?

Thanks

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
REFINITIV
zoya.farberov ♦♦ · Feb 08, 2017 at 10:37 AM 0
Share

Hello @josa,

Both RFA and EMA support view feature.

When you run Batch View Example, you should get back initial login response with the attributes of your connection. Something like this:

LoginClient.processEvent: Received Login Response...

LoginClient: Received Login Response - MsgType.REFRESH_RESP

...

AttribInfo

...

ELEMENT_ENTRY SingleOpen: 1

ELEMENT_ENTRY SupportBatchRequests: 7

ELEMENT_ENTRY SupportOptimizedPauseResume: 1

ELEMENT_ENTRY SupportPauseResume: 1

ELEMENT_ENTRY SupportViewRequests: 1

...

Please let us know what attributes are you seeing?

avatar image
josa · Feb 08, 2017 at 10:41 AM 0
Share

Thanks @zoya.farberov, sure will do.

avatar image
REFINITIV
Answer by Pimchaya.Wongrukun · Feb 08, 2017 at 10:55 PM

Hello @josa

The attribute,SupportViewRequests, in the login response cannot indicate if the server supports view or not. Since it is always 1 regardless view is supported by the sever or not. This is the RFAJ expected behaviour due to the Login Refactoring feature.

To verify if the server supports view, please run StarterConsumer_BatchView(RFA example application) to request specific fields to the same ADS server/service as your application.

The example command line to request RIC TRI.N for BID and ASK field from a user named pimchaya to the service API_ELEKTRON:

java com.reuters.rfa.example.omm.batchviewcons.StarterConsumer_BatchView -session myNamespace::consSession -serviceName API_ELEKTRON -user pimchaya -rdmFieldDictionary ..\etc\RDM\RDMFieldDictionary -enumType ..\etc\RDM\enumtype.def -itemName TRI.N -sendView true -viewType 1 -viewData 22,25 -sendReissue false -reissueWithPAR false -reissueWithPriority false -runTime 60

For help of StarterConsumer_BatchView, please refer to package.html in StarterConsumer_BatchView's source directory

If StarterConsumer_BatchView receives only specificed fields, ADS server supports View. Hence, you should review your application source code when it encodes an item request against StarterConsumer_BatchView's source code or section “13.3.2.1 Creating Request Message With View” of RFA Java Developers Guide.

If StarterConsumer_BatchView receives all fields, you should contact the account team to make ADS supports view.

Comment
Anton Antonov

People who like this

1 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
josa · Feb 09, 2017 at 10:02 AM 0
Share

Thanks @Pimchaya.Wongrukun. Will check and get back ASAP.

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

CallBacks using java

lock on request

OpenDacs versus DACS

not able to rerurn JSON aaray in RESTAPI (local host )

Generate a report of all users showing API versions being used to mount?

  • 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