I'm using jquery to get a response from a webservice. The code is the same as I have seen used by many others without problems. I'm using a free webservice from http://www.service-repository.com/ just for testing.
My code looks like this:
jQuery.support.cors = true;
$.ajax({
type: "POST",
url: "http://www.webservicex.com/globalweather.asmx/GetWeather",
data: "{CityName: Boston}",
contentType: "application/json; charset=utf-8",
dataType: "json",
error: writeError(){...};
success: beHappy(){...} });
As the title say, I get an internal server error.
the first line enables cross domain scripting. This is needed since the web service is remote. (without this line I get "No Transport" error)