//Submit the HTTP request and check if the job was created successfully. using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { // // If the job was created successfully, the status code should be // 201 (Created) and the 'Location' header should contain a URL // that defines the location of the new dataflow job. You use this // URL with the Bing Maps Key to query the status of your job. // if (response.StatusCode != HttpStatusCode.Created) throw new Exception("An HTTP error status code was encountered when creating the geocode job."); string dataflowJobLocation = response.GetResponseHeader("Location"); if (String.IsNullOrEmpty(dataflowJobLocation)) throw new Exception("The 'Location' header is missing from the HTTP response when creating a goecode job."); return dataflowJobLocation;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)