Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 73142 invoked from network); 24 Jul 2007 09:52:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 09:52:08 -0000 Received: (qmail 5162 invoked by uid 500); 24 Jul 2007 09:51:59 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 5145 invoked by uid 500); 24 Jul 2007 09:51:59 -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 5134 invoked by uid 99); 24 Jul 2007 09:51:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 02:51:59 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of arajendran.jjr@gmail.com designates 64.233.184.229 as permitted sender) Received: from [64.233.184.229] (HELO wr-out-0506.google.com) (64.233.184.229) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 02:51:57 -0700 Received: by wr-out-0506.google.com with SMTP id i22so1242821wra for ; Tue, 24 Jul 2007 02:51:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bt4rQGw1s6VQZ3DTvntCI96WboRFk7lJnlopS2zHBre3irvn05tc9C/T64Fl45hjQ3KPCywtqDQe9Eu3c1mQIKHsvzvM0H9V3s7LDUy0FWAd/u7RRPCWEqe67xG1pu6XA95YsAmA8kdPBq9lF84q5vOX/JvP7bMpKQ4UHrDat+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PUbfNU9UV/XMnPk1rJtJCUqaj4pX0toEMxNWccCA90b7jGUjqNrm07/5LM9N7RG9goeRGRqkl3927wjHFRCL5w2AmmH2EzRkfuZDyZKkMKd4bfRDWlZogqacIFeQAb5wTMjVoLTLTBnj9kQDPkFmVTsEw9tBoVgHAlUelNJYB2o= Received: by 10.78.170.6 with SMTP id s6mr1027447hue.1185270694990; Tue, 24 Jul 2007 02:51:34 -0700 (PDT) Received: by 10.78.167.18 with HTTP; Tue, 24 Jul 2007 02:51:34 -0700 (PDT) Message-ID: Date: Tue, 24 Jul 2007 15:21:34 +0530 From: "Ashok Kumar Rajendran" To: axis-user@ws.apache.org Subject: Re: Content is not allowed in prolog Error in AXIS2 1.3 RC2 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_161624_15284548.1185270694940" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_161624_15284548.1185270694940 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Keith I am really amazed with your efforts . As u mentioned the environment variable pointed to the old Axis2 1.2 location . I changed the AXIS2_HOME to point to the latest 1.3 RC2 location and ran wsdl2Java . Though i got woden warning like Woden[Warning],0:0,WSDL504,Could not locate the schema document at URL " http://w ww.w3.org/2001/XMLSchema.xsd",java.net.ConnectException:Connection timed out: connect I am able to generate the Stubs and server Implementation interface .Thanks for adding the Validation tool . Cheers, Ashok On 7/24/07, keith chapman wrote: > > Ashok, > > I've added the WSDL validation to Axis2 as well. This will be available in > the nightly and also in the 1.3 release. > > Thanks, > Keith. > > On 7/24/07, keith chapman wrote: > > > > Hi Ashok, > > > > I just downloaded AXIS2 1.3 RC2 and ran wsdl2java on your WSDL with > > options -uri and -wv 2, and it worked perfectly. I tested this on both Linux > > and windows and on both JDK 1.4 and 1.5. I wonder whether you have an > > old AXIS2_HOME. Can you check on this please as I'm not getting any error. > > > > Thanks, > > Keith. > > > > On 7/24/07, Ashok Kumar Rajendran < arajendran.jjr@gmail.com> wrote: > > > > > Thanks for your effort Keith . Here with I attached the sample wsdl > > > that i am using.. > > > > > > kindly let me to know the Errors > > > > > > Thanks, > > > Ashok > > > > > > > > > > > > On 7/24/07, keith chapman wrote: > > > > > > > > Hi Ashok, > > > > > > > > Can u upload your WSDL please so that we can have a look. > > > > > > > > Thanks, > > > > Keith. > > > > > > > > On 7/24/07, Ashok Kumar Rajendran < arajendran.jjr@gmail.com > > > > > wrote: > > > > > > > > > > Hi all , > > > > > > > > > > I downloaded the latest AXIS2 1.3 RC2 form Axis2 repository. While > > > > > running the bundled WSDL2Java to generate the Java stubs using WSDL > > > > > 2.0 file i got a exception saying Content is not allowed in prolog > > > > > . I couldn't find the flaw . can any one guide me to fix this one . > > > > > I hope the error is related to WSDL parser which is not able to > > > > > parse ,the wsdl file which is WSDL 2.0 based . > > > > > > > > > > I am using JDK 1.4 in Win 2000 > > > > > > > > > > Heres the stack trace > > > > > > > > > > > > > > > > > > > > [Fatal Error] :1:1: Content is not allowed in prolog. > > > > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error > > > > > parsing WSDL > > > > > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .( > > > > > CodeGenerationEngine.java:153) > > > > > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > > > > > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Woden[Fatal Error],0:0,WSDL500,SAX Parsing error in document located at > > > > > file:/C:/SoNoMa/., org.xml.sax.SAXParseException:Content is not > > > > > allowed in prolog. > > > > > > > > > > Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: > > > > > Content is not allowed in prolog.: org.xml.sax.SAXParseException: > > > > > Content is not allowed in prolog. > > > > > at org.apache.xerces.parsers.DOMParser.parse (Unknown Source) > > > > > at org.apache.woden.internal.DOMWSDLReader.getDocument( > > > > > DOMWSDLReader.java:724) > > > > > at org.apache.woden.internal.DOMWSDLReader.readWSDL( > > > > > DOMWSDLReader.java :245) > > > > > at org.apache.woden.internal.DOMWSDLReader.readWSDL ( > > > > > DOMWSDLReader.java:122) > > > > > at org.apache.axis2.description.WSDL20ToAxisServiceBuilder > > > > > .(WSDL20ToAxisServiceBuilder.java:145) > > > > > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .( > > > > > CodeGenerationEngine.java :97) > > > > > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > > > > > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > > > > > > > > > > at org.apache.woden.internal.ErrorReporterImpl.reportError( > > > > > ErrorReporterImpl.java:236) > > > > > at org.apache.woden.internal.ErrorReporterImpl.reportError( > > > > > ErrorReporterImpl.java :184) > > > > > at org.apache.woden.internal.DOMWSDLReader.getDocument ( > > > > > DOMWSDLReader.java:735) > > > > > at org.apache.woden.internal.DOMWSDLReader.readWSDL( > > > > > DOMWSDLReader.java:245) > > > > > at org.apache.woden.internal.DOMWSDLReader.readWSDL ( > > > > > DOMWSDLReader.java:122) > > > > > at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.( > > > > > WSDL20ToAxisServiceBuilder.java:145) > > > > > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.( > > > > > CodeGenerationEngine.java :97) > > > > > ... 2 more > > > > > Exception in thread "main" > > > > > > > > > > Your help is appreciated . > > > > > > > > > > Thanks , > > > > > > > > > > Ashok > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Keith Chapman > > > > WSO2 Inc. > > > > Oxygen for Web Services Developers. > > > > http://wso2.org/ > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > -- > > Keith Chapman > > WSO2 Inc. > > Oxygen for Web Services Developers. > > http://wso2.org/ > > > > > > -- > Keith Chapman > WSO2 Inc. > Oxygen for Web Services Developers. > http://wso2.org/ > ------=_Part_161624_15284548.1185270694940 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thanks Keith I am really amazed with your efforts . As u mentioned the environment variable pointed to the old Axis2 1.2 location . I changed the AXIS2_HOME to point to the latest 1.3 RC2 location and ran wsdl2Java . Though i got woden warning like
 
Woden[Warning],0:0,WSDL504,Could not locate the schema document at URL "http://w
ww.w3.org/2001/XMLSchema.xsd",java.net.ConnectException:Connection timed out: connect
 
 I am  able to generate the Stubs and server Implementation interface .Thanks for adding the Validation tool  .
 
Cheers,
Ashok
 

 
On 7/24/07, keith chapman <keithgchapman@gmail.com> wrote:
Ashok,

I've added the WSDL validation to Axis2 as well. This will be available in the nightly and also in the 1.3 release.

Thanks,
Keith.

On 7/24/07, keith chapman <keithgchapman@gmail.com > wrote:
Hi Ashok,

I just downloaded AXIS2 1.3 RC2 and ran wsdl2java on your WSDL with options -uri and -wv 2, and it worked perfectly. I tested this on both Linux and windows and on both JDK 1.4 and 1.5. I wonder whether you have an old AXIS2_HOME. Can you check on this please as I'm not getting any error.

Thanks,
Keith.

On 7/24/07, Ashok Kumar Rajendran < arajendran.jjr@gmail.com> wrote:
Thanks for your effort Keith . Here with I attached the sample wsdl that i am using.. 
 
kindly let me to know the Errors
 
Thanks,
Ashok
 

 
On 7/24/07, keith chapman <keithgchapman@gmail.com > wrote:
Hi Ashok,

Can u upload your WSDL please so that we can have a look.

Thanks,
Keith.


On 7/24/07, Ashok Kumar Rajendran < arajendran.jjr@gmail.com > wrote:
Hi all ,
 
I downloaded the latest AXIS2 1.3 RC2 form Axis2 repository. While running the bundled  WSDL2Java to generate the Java stubs using WSDL 2.0 file i got a exception saying Content is not allowed in prolog . I couldn't find the flaw .  can any one guide me to fix this one .
 I hope the error is related to WSDL parser which is not able to parse ,the wsdl file which is  WSDL 2.0 based .
 
 I am  using JDK 1.4 in Win 2000 
 
Heres the stack trace  
 
 

[Fatal Error] :1:1: Content is not allowed in prolog.
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
 at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(CodeGenerationEngine.java:153)
 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java :24)Woden[Fatal Error],0:0,WSDL500,SAX Parsing error in document located at file:/C:/SoNoMa/., org.xml.sax.SAXParseException:Content is not allowed in prolog.

Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: Content is not allowed in prolog.: org.xml.sax.SAXParseException: Content is not allowed in prolog.
 at org.apache.xerces.parsers.DOMParser.parse (Unknown Source)
 at org.apache.woden.internal.DOMWSDLReader.getDocument(DOMWSDLReader.java:724)
 at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java :245)
 at org.apache.woden.internal.DOMWSDLReader.readWSDL (DOMWSDLReader.java:122)
 at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(WSDL20ToAxisServiceBuilder.java:145)
 at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(CodeGenerationEngine.java :97)
 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

 at org.apache.woden.internal.ErrorReporterImpl.reportError(ErrorReporterImpl.java:236)
 at org.apache.woden.internal.ErrorReporterImpl.reportError(ErrorReporterImpl.java :184)
 at org.apache.woden.internal.DOMWSDLReader.getDocument (DOMWSDLReader.java:735)
 at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:245)
 at org.apache.woden.internal.DOMWSDLReader.readWSDL (DOMWSDLReader.java:122)
 at org.apache.axis2.description.WSDL20ToAxisServiceBuilder .<init>(WSDL20ToAxisServiceBuilder.java:145)
 at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java :97)
 ... 2 more
Exception in thread "main" 

Your help is appreciated .

Thanks ,

Ashok

 



--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/



--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

------=_Part_161624_15284548.1185270694940--