JSFiddle - React, Tailwind, and code Playground
WCF call using JQuery
by Joe Cisneros
JavaScript
$.ajax({
type: "POST", //GET or POST or PUT or DELETE verb
url: 'http://maps.bakersfieldcity.us/factory/streetnames/StreetNames.svc/json/all', // Location of the service
data: '{"query":"*"}', //Data sent to server
contentType: "application/json; charset=utf-8", // content type sent to server
dataType: "json", //Expected data format from server
processdata: true, //True or False
success: function(msg) {//On Successfull service call
console.log(msg);
}
// ,error: ServiceFailed// When Service call fails
});