我是靠谱客的博主 任性凉面,这篇文章主要介绍com.ctc.wstx.exc.WstxUnexpectedCharException:Unexpected错误解决,现在分享给大家,希望可以做个参考。

com.ctc.wstx.exc.WstxUnexpectedCharException:Unexpected错误解决

业务场景 :向ESB发送请求XML自定义报文报错
错误详细 :

the endpoint reference ERP for the Operaion not found is http:ip and the wsa action = 1
message format error :com.ctc.wstx.exc.WstxUnexpectedCharException:Unexpected
character ‘=’ (code 61)excepted either space or “?>”
after PI target at [row,col (unknown-source)]: [1,13]

解决办法 :

发送请求的xml头<?xml version="1.0" encoding="GBK"?>
xml与version之间留出空格
version与encoding之间留出空格

最后

以上就是任性凉面最近收集整理的关于com.ctc.wstx.exc.WstxUnexpectedCharException:Unexpected错误解决的全部内容,更多相关com内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(40)

评论列表共有 0 条评论

立即
投稿
返回
顶部