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

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
at erWrapper.fatalErr
at porter.reportError
at porter.reportError
at .reportFatalError(
at tScannerImpl$Prolo
Dispatcher.dispatch( 9)
at tFragmentScannerIm
l.scanDocument( :368)
at nfiguration.parse(
at nfiguration.parse(
at er.parse(XMLParser
at er.parse(DOMParser
at ilderImpl.parse(Do
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil
at org.apache.axis.wsdl.symbolTable.SymbolTable.popul ate(SymbolTable.ja
at org.apache.axis.wsdl.gen.Parser$

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.