This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error while using WSDL2Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error while using WSDL2Java" Watch "Error while using WSDL2Java" New topic
Author

Error while using WSDL2Java

Anuragbhai Choudhary
Greenhorn

Joined: Oct 13, 2006
Posts: 1
I am using WSDL2java tool to generate stubs.I am using apache axis.
But after giving the coomand i am gettiing following error.
Please help me rregarding this



C:\>java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -p fibonacci.ws fib.w
sdl
org.xml.sax.SAXException: Fatal Error: URI= Line=0: : XML-0220: (Fatal Error) In
valid InputSource.
at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:143)
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:209)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:144)
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:96)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
John Bauer
Greenhorn

Joined: Oct 14, 2006
Posts: 3
make sure you have all the appropriate jar files in your classpath
ashokreddy swarna
Greenhorn

Joined: Jan 09, 2011
Posts: 2
Dear All,

I am also facing the same issue.

Can you please let us know the reason...is it issue with WSDL or AXIS WSDL2JAVA tool?
Please help me out on this.

Cheers,
ashok.
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi,
I have been using Axis for a long time and haven't encountered this specific problem. Can you post your WSDL so I could see myself what's going on? If you'd like to cut down WSDL before posting ensure the same problem comes after amendment.


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
ashokreddy swarna
Greenhorn

Joined: Jan 09, 2011
Posts: 2
Thanks for the response Naren,

Even i have been using it from long back for WSDL to Java conversion.I never used to get any error.

Now updated to the 3rd party system who has given WSDL to me.They missed out to send XSD file along with WSDL.
Now i am able to extract the JAVA code using AXIS ,by placing both WSDL and XSD file in same location.



Cheers,
ashok.
 
jQuery in Action, 2nd edition
 
subject: Error while using WSDL2Java
 
Similar Threads
Axis client calling .NET Web service
Document root element missing
org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file
WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con
SAXException while generating stubs for a WSDL