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之间留出空格