I am trying to call the 'delete' method on a POJO service with:
This fails to compile with the errors:
Error: Syntax error: expecting identifier before delete.
Error: Syntax error: expecting identifier before rightparen.
It seems as if the compiler is detecting the call to the delete method as the delete operator instead. Is there a way to fix this or will I need to change the method name on the service?
Types are static. You cannot delete a method, only dynamic properties.
I am not trying to delete a method; I am trying to call a method that is named 'delete'.
Ohhh, haha, yeah that could be a problem.
Maybe try getOperation('delete') on your service and then call send() on the operation.