Hi,
I am recording a REST API Web application using normal HTTP protocol. After I record I can see web_custom_requests recorded in code. (I do not want to use TruClient protocol as the memory footprint is really high)
When I go to the snapshot view I can see a response received for the recording. But on replay I don't get any response back for some requests.
Any ideas?
Sample recorded code:
1) For the below request I can see a response returned & able to capture is.
web_reg_save_param_ex("ParamName=InstrRef", "LB=CD", "RB=", "Ordinal=1", LAST );
web_custom_request("deposit",
"URL=https://{URL}/xyz/api/rest/cash/member/deposit",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=https://{PP_URL}/xyz/pages/cashDepositSa.jsp",
"Snapshot=t52.inf",
"Mode=HTML",
"EncType=application/json",
"Body={\"mnemonic\":\"{Mnemonic}\",\"transferType\":\"{TType}\",\"bic\":null,\"valueDate\":\"{TodaysDate}\",\"currency\":\"{Currency}\",\"components\":[{\"subAccount\":\"{SubAcc}\",\"amount\":\"{Amount}\"}],\"uuid\":\"{StrUUID}\"}",
LAST);
2) For the below I can't see any response returned.(I also tried giving empty LB & RB but nothing is returned)
web_reg_save_param_ex("ParamName=LUD", "LB=lastUpdated\":[", "RB=]", "Ordinal=1", LAST );
web_custom_request("CD3159400",
"URL=https://{URL}/xyz/api/rest/cash/cashInstruction/member/detail/CD3159400?_=1416921568326",
"Method=GET",
"TargetFrame=",
"Resource=1",
"RecContentType=application/json",
"Referer=https://{URL}/xyz/?le=SA",
"Snapshot=t45.inf",
"EncType=application/json",
LAST);