File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error while using WSDL2Java" Watch "Error while using WSDL2Java" New topic

Error while using WSDL2Java

Anuragbhai Choudhary

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 fib.w
org.xml.sax.SAXException: Fatal Error: URI= Line=0: : XML-0220: (Fatal Error) In
valid InputSource.
at oracle.xml.parser.v2.XMLError.flushErrors(
at oracle.xml.parser.v2.XMLReader.pushXMLReader(
at oracle.xml.parser.v2.XMLParser.parse(
at oracle.xml.jaxp.JXDocumentBuilder.parse(
at org.apache.axis.utils.XMLUtils.newDocument(
at org.apache.axis.utils.XMLUtils.newDocument(
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
at org.apache.axis.wsdl.gen.Parser$
at Source)
John Bauer

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

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

I am also facing the same issue.

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

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

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.

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

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.

I agree. Here's the link:
subject: Error while using WSDL2Java
It's not a secret anymore!