[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Showing empty JSON response (ABL HTTP client)

Status
Not open for further replies.
S

Steven Peeters

Guest
oJsonArray = cast(oResponse:Entity, JsonArray). oJsonArray:Write(JsonString, true). The code above will show error 12869, invalid cast from JsonObject to JsonArray. COPY-LOB FILE "c:\temp\test.json" TO JsonString CONVERT TARGET CODEPAGE "UTF-8". oParser = NEW ObjectModelParser(). oJsonArray = CAST(oParser:parse(JsonString), JsonArray). oJsonArray:Write(JsonString, true). message string(JsonString) view-as alert-box. The code above does work however. We also found KB 93379 "HTTP Client does not return a response body" . This resembles our situation. (even though the environment in the KB states 11.7.x) As we're not going to upgrade from 11.6.3 in the near future and we can't force the server to send the content-lenght header, we'll just use the classic socket approach. Regards, Steven

Continue reading...
 
Status
Not open for further replies.
Top