By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

error encounter " org.xml.sax.SAXException: Fatal Error" while running WSDL2Java tool

P: 3
i have created wsdl file by running the following url
http://localhost:8080/axis4/services/MyService?wsdl

next i run "c:\java org.apache.axis.wsdl.WSDL2Java MyService.wsdl" it is giving following error
org.xml.sax.SAXException: Fatal Error: URI=file:///E:/Personal/SMat/My%20Fav/We
Services/axis/axis-1_4/samples/userguide/example3/MyService.wsdl Line=2: Conten
is not allowed in prolog.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler. fatalError(XMLUtil
.java:723)
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.fatalErr
r(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner .reportFatalError(
MLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl$Prolo
Dispatcher.dispatch(XMLDocumentScannerImpl.java:89 9)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerIm
l.scanDocument(XMLDocumentFragmentScannerImpl.java :368)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser
java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(DOMParser
java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(Do
umentBuilderImpl.java:292)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.popul ate(SymbolTable.ja
a:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(P arser.java:361)
at java.lang.Thread.run(Thread.java:595)


can any body give the solution for the above problem.
Sep 18 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.