WstxUnexpectedCharException: Unexpected character '\"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers

六眼飞鱼酱① 提交于 2019-12-04 02:34:29

Had a very similar issue. The WSDL file is delivered, but calls on the bind address fail with this bogus doctype error. In our prod environment, http requests coming from outside the corporate network are swapped across to https. The solution was to request the WSDL file using https, then everything worked.

The problem is that the response is not XML, it is most likely a HTML page. In my case, the SOAP service I was requesting did not exist so I was getting a HTML error page, which starts like

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

There error is referring to that second-last character, the double quote.

I had a similar problem. You should have a syntax error at line 46 in your wsdl file

[row,col {unknown-source}]:[1,46]

I had the same error message, but that is also for XML attributes as..:

<add>
  <doc>
    <field name=id>48</field> <!-- Incorrect -->
    <field name="id">48</field><!-- Correct -->
    .....
  </doc>
</add>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!