EDIT
CHEC HERE MY EDITED POST with the JSONP issue i get this error :
Failed to load resource: the server responded with a status of 500 (Internal Server Error).
$.ajax({
url: "https://brsv2-6855bc66.ng.bluemix.net/DecisionService/rest/vacationsRuleApp/1.0/vacationsRuleProject/1.0",
// The name of the callback parameter, as specified by the YQL service
jsonp: "callback",
// Tell jQuery we're expecting JSONP
dataType: "jsonp",
// Tell YQL what we want and that we want JSON
data: {
"employeeID": "jujuju",
"loanAmount": 10517320,
"theEmployee": {
"seniority": 3,
"annualSalary": 10517320,
"nbOfExtraVacationDaysBasedOnSeniority": 10517320
},
"creditAmount": 20000,
"__DecisionID__": "string",
"AnnualSalary": 20000
},
// Work with the response
success: function( response ) {
alert("Success");
console.log( response ); // server response
},
fail: function(response){
alert("Fail");
alert(JSON.stringify(response));
}
});