question

Upvotes
Accepted
22 7 9 11

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

elektronrefinitiv-realtimetreprfajava
icon clock
10 |1500

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

Upvotes
Accepted
20.3k 73 10 20

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.

icon clock
10 |1500

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

Thanks @Umer

Upvotes
18k 21 12 20

@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.

icon clock
10 |1500

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

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.

Upvotes
9.5k 10 5 7

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.

icon clock
10 |1500

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

Upvotes
22 7 9 11

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

icon clock
10 |1500

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

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?

Thanks @zoya.farberov, sure will do.

Upvote
9.5k 10 5 7

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.

icon clock
10 |1500

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

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

Click below to post an Idea Post Idea