Java Client for TR Chart

Hi,
I try to call the chart service with java, but get invalid child element error. I have implemented the java client using the C# example and comparing to the xml request I see in the API page (https://www.trkd.thomsonreuters.com/SupportSite/TestApi/Op?svc=Charts_1&op=GetChart_2).
Please find the attached TR-request from the api page (getchart-request-2-troriginal.txt) and the request generated from our java-client (trchartrequest-bwside.txt).
The error that appears is as follows:
de.byteworx.reuters.model.charts.ICharts1ICharts1HttpsAndRKDTokenGetChart2ClientErrorReferenceFaultMessage: The element 'StandardTemplate' in namespace 'http://metastock.com/imageserver/financial' has invalid child element 'ShowNonTradedPeriods' in namespace 'http://metastock.com/imageserver/financial'. List of possible elements expected: 'YAxisTitles' in namespace 'http://metastock.com/imageserver/financial'.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:135)
at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
at com.sun.proxy.$Proxy356.getChart2(Unknown Source)
Please have a look and give me any hints.
Thanks,
Best Answer
-
Hi,
Noticed error in the Request.
The
element 'StandardTemplate' in namespace
'http://metastock.com/imageserver/financial' has invalid child element
'ShowNonTradedPeriods' in namespace
'http://metastock.com/imageserver/financial'. List of possible elements
expected: 'YAxisTitles' in namespace
'http://metastock.com/imageserver/financial'This request clearly has missing non-optional elements, according to the TRKD schema...
TRKD shcema
xsd relevant to this bit., imported from wsdl is here...http://api.trkd.thomsonreuters.com/schemas/Charts/ChartsFINancial.xsd
Important Notes:
When its mentioned as sequence ,should provide the request as in same order and should not skip any non optional elements according to the schema.This is the root cause for this error.
0
Answers
-
Thank you!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 713 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛