org.xml.sax.SAXParseException: Content is not allowed in prolog

前端 未结 30 2135
别那么骄傲
别那么骄傲 2020-11-22 02:54

I have a Java based web service client connected to Java web service (implemented on the Axis1 framework).

I am getting following exception in my log file:

30条回答
  •  执念已碎
    2020-11-22 03:53

    Just spent 4 hours tracking down a similar problem in a WSDL. Turns out the WSDL used an XSD which imports another namespace XSD. This imported XSD contained the following:

    
    
    
       
        
            <....
    

    Note the empty include element! This was the root of my woes. I guess this is a variation on Egor's file not found problem above.

    +1 to disappointing error reporting.

提交回复
热议问题