Dispatch (JSON)

    string url = serviceUrl + "rest/dispatch/" + this.key;
    string responseString = null;
    string contentType = null;
    string postData = null;

    if (radioBtnJson.Checked)
    {
       contentType = "text/json";//or application/json
            
       string path = Path.Combine(Application.StartupPath, "DispatchLatLon.txt");
       postData = File.ReadAllText(path);
       responseString = CallService(url, postData, contentType);
    }