Like the example you gave for invoking a service which requires parameters as above :
serviceName.execute({data: {"parameter1": "val", "parameter2": val},
success: function(){
//some code
}});
I wanted a similar code for invoking an update service with parameters $set and where clause