I wanted to know if there is a way to call the Azure Machine Learning webservice using JavaScript Ajax.
The Azure ML gives sample code for C#, Python and R.
I did try out to call the webservice using JQuery Ajax but it returns a failure.
I am able to call the same service using a python script.
Here is my Ajax code :
  $.ajax({
        url: webserviceurl,
        type: "POST",           
        data: sampleData,            
        dataType:'jsonp',                        
        headers: {
        "Content-Type":"application/json",            
        "Authorization":"Bearer " + apiKey                       
        },
        success: function (data) {
          console.log('Success');
        },
        error: function (data) {
           console.log('Failure ' +  data.statusText + " " + data.status);
        },
  });
 
     
     
     
    