I have seen many samples of service.execute({});
I have never seen the complete syntax anywhere.
I have my own ideas, could you very that the following is correct
pre service_name.execute({
Code: Select all
success: function( PlainObject data, String textStatus, jqXHR jqXHR ) {
//Success handler here
},
error: function( jqXHR jqXHR, String textStatus, String errorThrown ) {
//Error handler here
},
complete: function( jqXHR jqXHR, String textStatus ) {
//Complete handler here
},
parameters: {object with 'query string' request parameters},
data: { object with 'body' request params },
headers: { object with request header params }
});/pre
Is this correct?
Is it now outdated in preference to a newer method of executing services?