• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL2Java : Premature end of file  RSS feed

 
Moses Marfo
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable use apache axis 2 to generate client side classes from the endpoint https://app.secure-booker.com/WebService4/soap/CustomerService.svc?wsdl using apache axis 2. I have tried the following without any success

  • Downloading the wsdl file and using a local copy instead of accessing it via the web.
  • Downloading the schema files separately and including them in the wsdl
  • Using wsimport instead of apache axis 2


  • Below is the error that i am getting


    I will appreciate any help that I can get.
     
    William Brogden
    Author and all-around good cowpoke
    Rancher
    Posts: 13078
    6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    If this was my problem the first thing I would do is look at the WSDL file with an XML compatible editor - perhaps there is an obvious problem.

    Note that there are plenty of things that will throw off parsing an XML document such as a WSDL file :

    1. any character before the first "<?xml" - which MUST start the first line of the document
    2. any MS Word "smart" punctuation
    3. any control code except cr lf (and tab I think...(

    Personally I use UltraEdit-32 but there are plenty of XML compatible editors.

    Note that if you can catch the SAXParseException you can usually get a line and column number. Unfortunately it looks like the axis library is swallowing that exception

    Bill
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!