eclipse-ee4j / metro-jax-ws

metro-jax-ws
https://eclipse-ee4j.github.io/metro-jax-ws/
BSD 3-Clause "New" or "Revised" License
72 stars 40 forks source link

Schema separated compilation doesn't work #553

Open Tomas-Kraus opened 2 years ago

Tomas-Kraus commented 2 years ago

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