axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hariharasudhan.D Dhakshinamoorthy" <hariharasudha...@gmail.com>
Subject Re: Content is not allowed in prolog Error in AXIS2 1.3 RC2
Date Tue, 24 Jul 2007 06:36:23 GMT
Ashok,

Your WSDL is not proper.

To make sure if your WSDL is proper you can try generating the SOAP Request
with http://soapui.org

Regards,
Hariharasudhan.D


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
>
>
>

Mime
View raw message