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.