根据联通sgip1.2接口协议,使用华为短信开发包,报错
[Fatal Error] :24:28: An invalid XML character (Unicode: 0xd863) was found in the element content of the document. org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xd863) was found in the element content of the documen.
报错原因:xml的编码格式是unicode,读取失败
解决办法:解压smproxy.jar包,然后找到华为短信开发包\CMPP3资料\smproxy\com\huawei\insa2\comm\sgip下有一个resource_zh.xml,这个文件的编码格式改成utf-8,保存时业保存成utf-8,然后重新打包,就不会报错了
点击下载:修改过的jar包
有人说没有源码,在此贴出源码供大家下载:smproxy华为源码包: