This will work for SQL databases, oracle databases will require something like
BEGIN someFunction(?); END;
I am facing this issue also as my procedure has return values, oracle uses SYS_REFCURSOR and there is no clear way to use it in wso2.
If anyone has a solution they can answer.