Issue building java classes from WSDL

Hello
We are facing an issue trying to build java classes from WSDL.
The WSDL we are using is:
http://api.trkd.thomsonreuters.com/schemas/Fundamentals/wsdl/Fundamentals_1_HttpAndRKDToken.wsdl
Our environment is configured following developer guide, chapter 40.
Software versions are:
- Oracle jdk build 1.8.0_191-b12
- Sun Metro framework 2.3.1
- Apache Ant 1.10.5
We are executing the following Ant script:
<?xml version="1.0"?>
<project default="build" basedir=".">
<record name="build.log" loglevel="verbose"/>
<property environment="env"/>
<path id="class.path">
<fileset dir="${env.METRO_HOME}/lib/" includes="* .jar"/>
</path>
<target name="build">
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport"
classpathref="class.path"/>
<property name="wsdl" value="http://api.trkd.thomsonreuters.com/schemas/Fundamentals/wsdl/Fundamentals_1_HttpAndRKDToken.wsdl"/>
<wsimport wsdl="${wsdl}" sourcedestdir="src" xnocompile="true" extension="true" verbose="true">
<binding dir="${env.ANT_HOME}/etc" includes="*.xml" />
</wsimport>
</target>
</project>
But Ant throws these errors:
build:
[wsimport] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
[wsimport] JAX-WS RI 2.2.10
[wsimport] command line: wsimport/opt/jdk1.8.0_191/jre/bin/java -extension -keep -s /home/jalonso/TRKD/src -verbose -Xnocompile Fundamentals_1_HttpAndRKDToken.wsdl
[wsimport] analizando WSDL...
[wsimport]
[wsimport]
[wsimport] [WARNING] unknown extensibility element or attribute "EndpointReference" (in namespace "http://www.w3.org/2005/08/addressing")
[wsimport] line 590 of file:/home/jalonso/TRKD/Fundamentals_1_HttpAndRKDToken.wsdl
[wsimport]
[wsimport] [ERROR] Property "Value" is already defined. Use <jaxb:property> to resolve this conflict.
[wsimport] line 56 of jar:file:/opt/metro/lib/webservices-tools.jar!/com/sun/xml/xsom/impl/parser/datatypes.xsd
[wsimport]
[wsimport] [ERROR] The following location is relevant to the above error
[wsimport] line 430 of http://api.trkd.thomsonreuters.com/schemas/Fundamentals/LookUp_1.xsd
[wsimport]
Could you please help us with this?
Thanks in advance.
Regards.
Best Answer
-
Hello @javier.alonso,
Our TRKD web service, and WSDL, on release, undergoes rigorous testing and verification process, so we all can be sure there are no issues on the web service side. We have confirmed with the product development group that this process does not include java code build. So there is no official way to build java. The quickstart guides for TRKD are available, and are in .NET and Perl.
Myself, I prefer Netbeans IDE for building a web service java client, as it takes care of the skeleton work for you. The steps are described in Developing WS Clients Tutorial.
And this is a link to ANT WS Client building resource that is preferred by my developer colleague, which is in line with what your approach.
We hope you find this info useful and are able to proceed.
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
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 650 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
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛