How to set headers using Ajax request? in below code
$.ajax({ type: type, //GET or POST or PUT or DELETE verb url: requestURL, // Location of the service // contentType: "application/x-www-form-urlencoded", // content type sent to server dataType: "xml", //Expected data format from server processData: false, //True or False success: successCallback, //On Successfull service call error: serviceFailed// When Service call fails });