/// <summary> /// Funtion to handle ebs webservice response /// </summary> /// <param name="respJson">response in jSON string</param> public void ExtractResponse(string jsonResp) { Dictionary <string, object> data = (Dictionary <string, object>)WebServiceRequest.JsonDeSerialize(jsonResp); Dictionary <string, object> outputParam = (Dictionary <string, object>)data["OutputParameters"]; Dictionary <string, object> returnTbl = (Dictionary <string, object>)outputParam["P_RETURN_TBL"]; Dictionary <string, object> returnTblItem = (Dictionary <string, object>)returnTbl["P_RETURN_TBL_ITEM"]; if (returnTblItem["HASERROR"].ToString() == "1") { WorkspaceAddIn.InfoLog(returnTblItem["DESCRIPTION"].ToString()); return; } else { _rnConnectService.UpdatePartsRecord(_partsInfo, returnTblItem["SALES_ORDER_NO"].ToString()); //WorkspaceAddIn.InfoLog("Order sent successfully"); } }