简体   繁体   中英

WSDL Error: Document could not be read at line 0

I am having an issue with a WSDL that no one else around me seems to be having. This is even stumping my instructor. When you copy and paste the body of the WSDL into a new file and then rename it to CostService.wsdl it works, but as soon as you do anything to the project the error below occurs. This is the exact same file as everyone else in my class uses, but only I have this issue. Can anyone help to point me in the right direction? Thank you!

The WSDL document file:///workspace/CostService/config/CostService.wsdl could not be read. CostService.wsdl /CostService/config line 0 - WSDL Problem

I've had this happen to me before. Open your WSDL in a file editor that shows "hidden" characters and look for an ASCII character that is probably before your opening < character. Delete this and save the file and you should be fine.

I figure that I should let people know my resolution in case they have the same problem. It seems as though it was a corrupted work space or eclipse environment... I deleted the environment and work space and started all over again. It seems to be alright now. Thank you for your help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM