Hello axis 2 users, I'm trying to generate the java code from the wsdl of an old web service using rpc/literal to have it under Axis2. If I'm generating the code using adb databinding, it works, but it fails using jaxbri. I have attach the log of wsdl2java.bat command in file Exception_jaxbri.txt
I'm attaching a ligth wsdl and one of the two xsd imported in it (the other is bigger but have the same logic). I've removed most of the xsd, keeping only the first two complex types (causing problem in the generation) Don't hesitate to point mistakes that could be in the wsdl or the xsd or ask for complete sources. Thanks in advance for your help Pierre Casenove
Retrieving schema wsdl:imported from 'OPTOAMC_02.06.00_REQ.xsd', relative to 'file:/C:/pcasenov/axis2-1.3/bin/'. Retrieving schema wsdl:imported from 'OPTOAMC_02.06.00_REP.xsd', relative to 'file:/C:/pcasenov/axis2-1.3/bin/'. Retrieving schema wsdl:imported from 'OPTOAMC_02.06.00_REQ.xsd', relative to 'file:/C:/pcasenov/axis2-1.3/bin/'. Retrieving schema wsdl:imported from 'OPTOAMC_02.06.00_REP.xsd', relative to 'file:/C:/pcasenov/axis2-1.3/bin/'. [WARN] src-resolve: Cannot resolve the name 'ns2:DEMANDE_COMPLEXE_TYPE' to a(n)'type definition' component. [WARN] src-resolve: Cannot resolve the name 'ns5:DEMANDE_TYPE' to a(n) 'type definition' component. [ERROR] the target namespace of the imported schema "http://www.almerys.com/services/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www. almerys.com/schemas/requeteOPTOAMC/2.6.0"[ERROR] the target namespace of the imported schema "http://www.almerys.com/serv ices/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www.almerys.com/schemas/requeteOPTOAMC/2.6.0" [ERROR] the target namespace of the imported schema "http://www.almerys.com/services/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www. almerys.com/schemas/requeteOPTOAMC/2.6.0" [ERROR] the target namespace of the imported schema "http://www.almerys.com/services/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www. almerys.com/schemas/reponseOPTOAMC/2.6.0" [ERROR] the target namespace of the imported schema "http://www.almerys.com/services/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www. almerys.com/schemas/reponseOPTOAMC/2.6.0" [ERROR] the target namespace of the imported schema "http://www.almerys.com/services/OPTOAMCWebService/2.6.0" doesn't agree with the expected value "http://www. almerys.com/schemas/reponseOPTOAMC/2.6.0" [ERROR] undefined simple or complex type 'ns2:DEMANDE_COMPLEXE_TYPE' [ERROR] undefined simple or complex type 'ns2:ANNULATION_TYPE' [ERROR] undefined simple or complex type 'ns2:DEMANDE_SIMPLE_TYPE' [ERROR] undefined simple or complex type 'ns5:DEMANDE_TYPE' [ERROR] undefined simple or complex type 'ns5:ANNULATION_TYPE' [ERROR] undefined simple or complex type 'ns5:DEMANDE_TYPE' Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101) ... 3 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to generate code using jaxbri at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192) ... 8 more Caused by: java.lang.RuntimeException: Unable to generate code using jaxbri at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:167) ... 8 more
OPTOAMC_02.06.00.wsdl
Description: Binary data
OPTOAMC_02.06.00_REP.xsd
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
