tiger-super commented on issue #2243:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2243#issuecomment-783345308


   > 你这个错误是 consumer 抛出来的还是 provider 抛出来的? consumer 使用 Spring MVC, provider 使用 
RPC 定义接口? 请求流程是 浏览器 (postman) 访问 consumer , consumer 再 RPC 访问 provider 吗? 你是不是 
consumer 的接口也改成了 String ? 如果 consumer 是 String, 浏览器(postman)传参的时候, 
需要将内容用双引号引起来, 即输入 json string。 或者定义 consumer 接口的时候,采用 @RawJsonRequestBody
   
   目前我是这样情况,通过工具发送过来的报文是xml,我是现在edgeservice进行了格式转换,将xml转成了json字符串
   
![image](https://user-images.githubusercontent.com/32871618/108709266-69081100-754d-11eb-9cec-0a152f5efcdb.png)
   下面是我的接口
   
![image](https://user-images.githubusercontent.com/32871618/108709253-660d2080-754d-11eb-8082-7e43812e8845.png)
   provider实现
   
![image](https://user-images.githubusercontent.com/32871618/108709237-62799980-754d-11eb-8029-4c31fc1a30e0.png)
   consumer实现
   
![image](https://user-images.githubusercontent.com/32871618/108709201-5beb2200-754d-11eb-91a7-af69fd6d18ac.png)
   provider根本就接收不到,一直报错误码500
   
![image](https://user-images.githubusercontent.com/32871618/108709577-dddb4b00-754d-11eb-8afa-4d54901f34c3.png)
   
![image](https://user-images.githubusercontent.com/32871618/108709638-ef245780-754d-11eb-8b7a-0b2a29601a76.png)
   
   大佬,帮忙看看我这个情况,已经困扰了我好多天了
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to