请求Json:
{
"OTA_AirLowFareSearchRQ":{
"DirectFlightsOnly":false,
"AvailableFlightsOnly":false,
"Version":"3.1.0",
"Target":"Production",
"POS":{
"Source":[
{
"PseudoCityCode":"XXXX", //morphed for security
"RequestorID":{
"Type":"1",
"ID":"1",
"CompanyName":{
"Code":"TN",
"content":"TN"
}
}
}
]
},
"OriginDestinationInformation":[
{
"RPH":"1",
"DepartureDateTime":"2017-06-05T00:00:00",
"OriginLocation":{
"LocationCode":"JFK"
},
"DestinationLocation":{
"LocationCode":"LAX"
},
"TPA_Extensions":{
"SegmentType":{
"Code":"O"
}
}
}
],
"TravelPreferences":{
"ValidInterlineTicket":true,
"CabinPref":[
{
"Cabin":"Y",
"PreferLevel":"Preferred"
}
],
"TPA_Extensions":{
"TripType":{
"Value":"OpenJaw"
},
"LongConnectTime":{
"Min":1200,
"Max":780,
"Enable":true
},
"ExcludeCallDirectCarriers":{
"Enabled":true
}
}
},
"TravelerInfoSummary":{
"SpecificPTC_Indicator":true,
"PriceRequestInformation":{
"TPA_Extensions":{
"PointOfSaleOverride":{
"Code":"TPE"
}
}
},
"SeatsRequested":[
1
],
"AirTravelerAvail":[
{
"PassengerTypeQuantity":[
{
"Code":"ADT",
"Quantity":1
}
]
}
]
},
"TPA_Extensions":{
"IntelliSellTransaction":{
"RequestType":{
"Name":"50ITINS"
},
"CompressResponse":{
"Value":true
}
}
}
}
}
回应Json:
{StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Conversation-ID:
Message-ID: mvwL2X
X-Provider-Instance-ID: raf-darhlp019-9080
Date: Thu, 25 May 2017 06:45:08 GMT
Server: Apache-Coyote/1.1
Content-Length: 1159
Content-Type: application/json
}}
相同的请求适用于开发人员凭据,但它不适用于生产环境。
答案 0 :(得分:-1)
404只是意味着找不到,所以很可能这就像使用错误的网址一样简单。
可能是您只是使用端点URL(https://api.sabre.com/)而不是指向实际服务的完整网址(v3.1.0 / shop / flights)。
为了给您更好的答案,我们需要更多信息。