public static SqlInt32 APICaller_Web_Extended(SqlString httpMethod, SqlString URL, SqlString Headers, SqlString JsonBody) { SqlInt32 ExecutionResult = APIConsumer.DEFAULT_EXECUTION_RESULT; API_Consumer.ExtendedResult ExtResult = new API_Consumer.ExtendedResult(); try { string Result = APIConsumer.WebMethod_Extended(ref ExtResult, httpMethod.ToString(), URL.ToString(), JsonBody.ToString(), Headers.ToString()); Helper.SendResultValue(ExtResult); } catch (Exception ex) { Helper.SendResultValue(ExtResult); ExecutionResult = APIConsumer.FAILED_EXECUTION_RESULT; } return(ExecutionResult); }