Our application is build on Java 7 and the other application is build on Java 8.
I have imported the wsdl url certificate using keytool & using Java 8 I'm able to generate the Jar. But when I use Java 7 it gives me [ERROR] Received fatal alert: protocol_version
I'm using ant to generate the jar.
<target name="abcService">
<delete dir="${build.dir}/jar/" />
<mkdir dir="${build.dir}/abcService" />
<echo message="building client classes....."/>
<wsimport
debug="true" extension="true" package="com.abc.abcService"
wsdl="https://abc-test1.corp.intranet/ABC/services/AbcServiceImplPort?wsdl"
destdir="${build.dir}/abcService">
<xjcarg value="-XautoNameResolution"/>
</wsimport>
<echo message="Jarring the classes generated using wsimport..."/>
<jar destfile="${build.dir}/jar/abcService.jar">
<fileset dir="${build.dir}/abcService" />
</jar>
</target>