signature 验证通过,但是接受不到响应数据,以下是响应的部分。
DEBUG - Written [
点击这里查看游戏帮助]]>
] as "application/xml;charset=UTF-8" using [org.springframework.http.converter.StringHttpMessageConverter@7d253fa7]
使用的Spring代码是:
@RequestMapping(value="/wodi", method = RequestMethod.POST,produces="application/xml;charset=UTF-8")
@ResponseBody
public String response(InputStream is){
String respMsg = Reply.ENCOUNTER_ERROR;// 出现异常时候的初始命令,可不设
try {
respMsg = commandService.generateResponseXML(is);
} catch (IOException | DocumentException e) {
LogUtil.error("IO or DocumentExcetion occurs from generateResponseXML when parsing xml\n");
}
return respMsg;
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
问题解决,以上的
FromUserName是开发者ID,而不是应用ID