Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 15342 invoked from network); 20 Nov 2006 22:57:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2006 22:57:38 -0000 Received: (qmail 11118 invoked by uid 500); 20 Nov 2006 22:31:08 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 11105 invoked by uid 500); 20 Nov 2006 22:31:07 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 11094 invoked by uid 99); 20 Nov 2006 22:31:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2006 14:31:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nhart@real.com designates 207.188.23.4 as permitted sender) Received: from [207.188.23.4] (HELO kal-el.real.com) (207.188.23.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2006 14:30:54 -0800 Received: from [192.168.0.6] ([::ffff:24.22.162.80]) (AUTH: PLAIN nhart, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by kal-el.real.com with esmtp; Mon, 20 Nov 2006 14:30:27 -0800 id 0008001E.45622C83.000053CF Message-ID: <45622C7F.6040807@real.com> Date: Mon, 20 Nov 2006 14:30:23 -0800 From: Nicholas Hart User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Apache AXIS C Developers List Subject: [Axis2] wsdl2java exception Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I've installed the 1.1 release of axis2 on winxp, and I've tried updating the jars with those located in the "Axis2 Maven Repository" (http://www.apache.org/dist/java-repository/org.apache.axis2/), however, I can't seem to get wsdl2java to generate code for C for one of my WSDL files. I seem to have it working for another WSDL file, but it chokes on one particular file. The instigator appears to be the following: Caused by: org.apache.axis2.schema.SchemaCompilationException: {http://schemas.xmlsoap.org/soap/encoding/}Array is not supported. But frankly I don't understand what that means and it doesn't seem to tell where it's actually breaking. I'd appreciate any insight anyone has. In our "wsdl:definitions" tag we set the following namespace attributes (in addition to some others): xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://kani.common.real.com" inside our schema we import the namespaces and declare a complex type like so: That seems to be the only place where we're using "Array" in that WSDL, and we declared the other type ("CobrandMetaData") referenced prior to the above declaration. Also, I believe this WSDL was generated with Axis1 not Axis2, thought I would hope that isn't a problem. Below is the full output when I run wsdl2java: wsdl2java.bat -o _Axis2Output -l c -uri RhapsodyDirectAccountMgmt.wsdl Using AXIS2_HOME: C:\dev\axis2-1.1 Using JAVA_HOME: c:\Program Files\Java\jdk1.5.0_07 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:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177) ... 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.SimpleDBExtension.engage(SimpleDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: {http://schemas.xmlsoap.org/soap/encoding/}Array is not supported. at org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler.java:820) at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1076) at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:989) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:973) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:883) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:866) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:499) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:336) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:248) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:72) ... 8 more --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org