Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将json发送到v4.0.0/book/flights/seatmap时出错?mode=seatmap_Json_Spring_Api_Sabre - Fatal编程技术网

将json发送到v4.0.0/book/flights/seatmap时出错?mode=seatmap

将json发送到v4.0.0/book/flights/seatmap时出错?mode=seatmap,json,spring,api,sabre,Json,Spring,Api,Sabre,当我向seatmap发送测试json时,我得到了一个错误。API资源管理器也返回一个500错误 方法:邮寄 网址: 我正在传递一个有效的承载令牌,并将内容类型设置为application/json 以下是我发布的JSON: { "EnhancedSeatMapRQ": { "SeatMapQueryEnhanced": { "RequestType": "Payload", "Flight": { "destination": "SAN",

当我向seatmap发送测试json时,我得到了一个错误。API资源管理器也返回一个500错误

方法:邮寄 网址:

我正在传递一个有效的承载令牌,并将内容类型设置为application/json

以下是我发布的JSON:

{
  "EnhancedSeatMapRQ": {
    "SeatMapQueryEnhanced": {
      "RequestType": "Payload",
      "Flight": {
        "destination": "SAN",
        "origin": "ATL",
        "DepartureDate": {
          "content": "2017-10-23"
        },
        "ArrivalDate": {
          "content": "2017-10-23"
        },
        "Operating": {
          "carrier": "DL",
          "content": "1692"
        },
        "Marketing": [
          {
            "carrier": "DL",
            "content": "1692"
          }
        ]
      },
      "CabinDefinition": {
        "RBD": "Y"
      }
    }
  }
}
我从API收到以下错误:

{
  "status": "NotProcessed",
  "reportingSystem": "RAF",
  "timeStamp": "2017-07-19T12:27:54+00:00",
  "type": "Validation",
  "errorCode": "ERR.RAF.VALIDATION",
  "instance": "raf-darhlc005-9080",
  "message": "Required request body is missing: public org.springframework.http.ResponseEntity com.sabre.rest.facade.controller.j2x.RestToSoapController.postRestToSoap(java.lang.String,javax.servlet.http.HttpServletRequest,boolean) throws java.lang.Throwable"
}

只有当我没有在身体里发送任何东西时,当我添加有效负载时,我才得到了成功的响应(下面是我使用Postman测试的屏幕截图)