Through Rest Assured: I see empty body . I want to see the similar response body i see it through ARC Client. Any help its highly appreciated.
Response response= RestAssured.given() .contentType("application/json"). body("{ \"CTLHDR\" : { \"SYS_NAME\" : same as above }, \"any\" : \"Hello\" }}") .post(""); Console Response :
{}PASSED: firstRestAssuredTest=============================================== Default test Tests run: 1, Failures: 0, Skips: 0===============================================--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Manual Testing from Chrome ARC Client i do see the response body- Please see the following
POST Request--------------------------------------------
Content-Type: application/json
Accept: application/json
Response-Mode: synchronous
Method :POST
RawPayload
{
"CTLHDR" : {
"SYS_NAME" : "XXXX",
"SVC_ID" : "XXXX",
"SVC_NAME" : "TEST",
"DOMAIN" : "AS",
"USER_ID" : "user",
"CALLBACK_URL" : "http://.......",
"TOPOLOGY_TOKEN" : "",
"WK_TYPE" : "I",
"JOB_TYPE" : "A",
"SYS_ID" : "ABC123",
"DTIMEOUT" : "PT30M0.000S",
"DIPVER" : "6.0"
},
"REQUEST" : {
"CID" : "XX-38XXX..CM",
""
},
"any" : "Hello"
}
}
Response in ARC Client both Header and body
Status:
200: OKLoading time: 6435 ms
Response header
Server: Apache-Coyote/1.1Content-Type: application/json;charset=UTF-8Content-Length: 1307Date: Wed, 24 Aug 2016 20:33:07 GMT
{ "ABC_RESPONSE": { "any": "Hello", "CTLHDR": { "SYS_NAME": "ABC", "SVC_ID": "XXXX", } }, "DETAILS": "XXXXXXl" }}------------------------------------------------