• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error while using WSDL2Java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
make sure you have all the appropriate jar files in your classpath
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic