Axis2 issue with comment in WSDL
Posted
by
Sirs
on Stack Overflow
See other posts from Stack Overflow
or by Sirs
Published on 2013-11-12T09:50:02Z
Indexed on
2013/11/12
9:52 UTC
Read the original article
Hit count: 309
I'm using an Axis2 client to access an external Webservice, whose WSDL starts with the following content:
<?xml version="1.0" encoding="UTF-8"?><!--Created by TIBCO WSDL--><wsdl:definitions xmlns:wsdl=...
My call to sendReceive crashes with the following error:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'C' (code 67) in prolog; expected '<'
The 'C' is the first character on the comment in the WSDL. Without that comment everything works fine, but as far as my knowledge of basic XML dictates that comment is correct. My question would be: Is this a bug in Axis2 or is the accessed WSDL malformed? Is there any way to prevent Axis2 from crashing under these circumstances?
© Stack Overflow or respective owner