[英]Why get a response of 200 but not showing message body in the endpoint client with KAA
I try with Kaa Sandbox (curl command and UI) for using send notification with Json file. 我尝试使用Kaa Sandbox(curl命令和UI)来使用Json文件发送通知。
My problem is : 我的问题是:
when I using json file why not showing message body in the client endpoint (Notification demo (JAVA SDK) ?! , While I receive 200 responses . 当我使用json文件时为什么不在客户端端点显示消息体(通知演示(JAVA SDK)?), 当我收到200个响应时 。
Hint: sdk according to related schema. 提示:根据相关架构的sdk。
I found the right solution. 我找到了正确的解决方案。
1- Make sure that your SDK related to schemaId 1-确保您的SDK与schemaId相关
2- Make sure structure of your schema just given an message field: 2-确保给出一个消息字段的架构结构:
{
"type": "record",
"name": "Notification",
"namespace": "org.kaaproject.kaa.schema.example",
"fields": [
{
"name": "message",
"type": "string"
}
]
} }
3- and your json file : 3-和你的json文件:
{
"message" : "Hello world!"
}
4- your curl command should be according to related schemaId and topicId and applic the tionId 4-你的curl命令应该根据相关的schemaId和topicId并应用于theId
For show to you: This is my json file: 为了给你看:这是我的json文件:
Then this is response in client: 然后这是客户端的响应:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.