metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

Schema separated compilation doesn't work

Open Tomas-Kraus opened this issue 2 years ago • 0 comments

Same issue as #709. It is still not resolved

C:\javadev\prj\wsimport\other>wsimport -version JAX-WS RI 2.2.4-b01

C:\javadev\prj\wsimport\other>xjc -episode common.episode AogMessages.xsd parsing a schema... compiling a schema... cz\komix\egate\aog\messages\ObjectFactory.java cz\komix\egate\aog\messages\PingRequest.java cz\komix\egate\aog\messages\PingResponse.java cz\komix\egate\aog\messages\package-info.java cz\komix\egate\aog\types\ObjectFactory.java cz\komix\egate\aog\types\PingData.java cz\komix\egate\aog\types\package-info.java

C:\javadev\prj\wsimport\other>wsimport -b common.episode Aog4Csa.wsdl parsing WSDL...

[ERROR] Schema descriptor

{http://egate.komix.cz/aog/messages}

PingRequest in message part "parameters" is not defined and could not be bound to Java. Perhaps the schema descriptor

{http://egate.komix.cz/aog/messages}

PingRequest is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch. line 9 of file:/C:/javadev/prj/wsimport/other/Aog4Csa.wsdl

C:\javadev\prj\wsimport\other>wsimport -b common.episode Csa4Aog.wsdl parsing WSDL...

[ERROR] Schema descriptor

{http://egate.komix.cz/aog/messages}

PingRequest in message part "parameters" is not defined and could not be bound to Java. Perhaps the schema descriptor

{http://egate.komix.cz/aog/messages}

PingRequest is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch. line 9 of file:/C:/javadev/prj/wsimport/other/Csa4Aog.wsdl

Affected Versions

[2.2.4]

Source: https://github.com/javaee/metro-jax-ws/issues/1163 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus