Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 64217 invoked from network); 18 Apr 2006 23:04:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 23:04:26 -0000 Received: (qmail 24820 invoked by uid 500); 18 Apr 2006 23:04:19 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 24806 invoked by uid 500); 18 Apr 2006 23:04:19 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 24784 invoked by uid 99); 18 Apr 2006 23:04:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 16:04:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 16:04:18 -0700 Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FVzEi-0005jk-PL for axis-user@ws.apache.org; Tue, 18 Apr 2006 16:03:56 -0700 Message-ID: <3978572.post@talk.nabble.com> Date: Tue, 18 Apr 2006 16:03:56 -0700 (PDT) From: Gopal Patwa To: axis-user@ws.apache.org Subject: Axis2 1.0 RC1 WSDL2Java error when import WS-Addressing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: gopalpatwa@gmail.com X-Nabble-From: Gopal Patwa X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N When I have WS-Addressing schema imported in my wsdl, I get this error running WSDL2Java -uri C:\gpatwa\workspace\BPELAxisAsyncTest\tmp\HelloWorldAsync.wsdl -a on -ss -sd -d xmlbeans -o C:\gpatwa\workspace\BPELAxisAsyncTest\tmp -p com.liquid.helloworld Both xmlbeans and JAxme throws error. Retrieving schema at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to 'file:/C:/gpatwa/workspace/BPELAxisAsyncTest/tmp/'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: attribute@http://www.w3.org/2001/XMLSchema in element extension@http://www.w3.org/2001/XMLSchema at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) 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: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: attribute@http://www.w3.org/2001/XMLSchema in element extension@http://www.w3.org/2001/XMLSchema at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:140) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140) ... 2 more Caused by: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: attribute@http://www.w3.org/2001/XMLSchema in element extension@http://www.w3.org/2001/XMLSchema at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) 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.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665) at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:117) ... 3 more -- View this message in context: http://www.nabble.com/Axis2-1.0-RC1-WSDL2Java-error-when-import-WS-Addressing-t1471363.html#a3978572 Sent from the Axis - User forum at Nabble.com.