Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 33728 invoked from network); 1 Mar 2006 04:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 04:24:01 -0000 Received: (qmail 71696 invoked by uid 500); 1 Mar 2006 04:23:53 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 71674 invoked by uid 500); 1 Mar 2006 04:23:53 -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 71663 invoked by uid 99); 1 Mar 2006 04:23:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 20:23:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ajith.ranabahu@gmail.com designates 64.233.184.204 as permitted sender) Received: from [64.233.184.204] (HELO wproxy.gmail.com) (64.233.184.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 20:23:52 -0800 Received: by wproxy.gmail.com with SMTP id i34so46280wra for ; Tue, 28 Feb 2006 20:23:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nwO/Id2VULw8NUobghO8LUkEtHAoZMR8UtBMLxd2kzWwKaCcfTg0wG9lNqLd8wzzpTYmwkv+UVqXptteTUnvi9DZ6PTXPi11MCendwVztqfV5WUyI/lQHT/asljV1PxpPmisfGxzVFMqXzGixTRg/P97K/DMHSWz1zqc9Jrktlc= Received: by 10.65.119.18 with SMTP id w18mr2347981qbm; Tue, 28 Feb 2006 20:23:31 -0800 (PST) Received: by 10.65.185.14 with HTTP; Tue, 28 Feb 2006 20:23:31 -0800 (PST) Message-ID: Date: Tue, 28 Feb 2006 22:23:31 -0600 From: "Ajith Ranabahu" To: axis-user@ws.apache.org Subject: Re: how to debug Axis2 WSDL2Java In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1373E0F66A559346AEDC87DCBA3D55AA97AF62@wafedixm12.corp.weyer.pri> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Noah, Hmm..this is weird. The attached WSDL is clearly wrong! However I just tried it and seems to be working fine here. Are you on JDK 1.5 in Linux ? Knowing your environment helps us to recreate the problem. Ajith On 2/28/06, Noah Levitt wrote: > One wsdl that doesn't work is > http://localhost:8080/axis2/services/version?wsdl, latest axis2 from > svn, version.wsdl attached... > > $ java -classpath > lib/axis2-0.95-SNAPSHOT.jar:lib/commons-logging-1.0.4.jar:lib/axis-wsdl4j= -1.2.jar:lib/XmlSchema-1.0-SNAPSHOT.jar > org.apache.axis2.wsdl.WSDL2Java -uri > 'http://localhost:8080/axis2/services/version?wsdl' > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL: > The WSDL Types Schema does not define a targetNamespace in > http://localhost:8080/axis2/services/version?wsdl > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(Co= deGenerationEngine.java:146) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: > Invalid WSDL: The WSDL Types Schema does not define a targetNamespace > in http://localhost:8080/axis2/services/version?wsdl > at org.apache.axis2.wsdl.codegen.extension.WSDLValidatorExtension= .engage(WSDLValidatorExtension.java:70) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(Co= deGenerationEngine.java:101) > ... 2 more > > Noah > > 2006/2/27, Ajith Ranabahu : > > Hi, > > I have to admit that the WSDL2Java tool has poor error messages. The > > primary reason for the tool to have hideous error messages is that it > > does no validation so far. What you can do for now is to use something > > like the Capeclear SOA editor to validate the WSDL. > > If the WSDL is valid and the codegen still complains please attach the > > WSDL (you might need to file a JIRA as well :)). In the meantime we'll > > try to make the WSDL2java error messages more meaningful. > > > > Ajith > > > > On 2/27/06, Tachtevrenidis, Kosta wrote: > > > > > > Greg, > > > > > > I have gotten that a lot too. What I do to get an idea of what is goi= ng on > > > is to use the wsewsdl3.exe tool to try to generate code for .NET, whi= ch have > > > a pretty good error message capability. Just my thoughts. > > > > > > Kosta Tachtevrenidis > > > http://www.weyer.com/dmg > > > > > > > > > ________________________________ > > > From: Greg Michalopoulos [mailto:GMichalopoulos@d2hawkeye.com] > > > Sent: Monday, February 27, 2006 1:49 PM > > > To: axis-user@ws.apache.org > > > Subject: how to debug Axis2 WSDL2Java > > > > > > > > > > > > I am getting exceptions when running WSDL2Java in Axis2, is there any= way to > > > get feedback from the application what might be wrong with my WSDL? > > > > > > Thanks, > > > Greg > > > > > > > > > -- > > Ajith Ranabahu > > > > > -- Ajith Ranabahu