我是靠谱客的博主 任性凉面,最近开发中收集的这篇文章主要介绍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.ctc.wstx.exc.WstxUnexpectedCharException:Unexpected错误解决所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复