• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while using WSDL2Java

 
Anuragbhai Choudhary
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure you have all the appropriate jar files in your classpath
 
ashokreddy swarna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ashokreddy swarna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic