I have a plugin that use Geocode web service of bing maps to retrieve data.
This is how i set my client:
BasicHttpBinding bindingBing = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
GeocodeServiceClient geocodeService = new GeocodeServiceClient(bindingBing, new EndpointAddress("https://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc"));
geocodeService.InnerChannel.OperationTimeout = new TimeSpan(0, 0, 30);
GeocodeResponse geocodeResponse = geocodeService.Geocode(geocodeRequest);
I need to NOT do the geocodeReponse if the service is unavaible or my bing maps key is invalid. Right now, it trys to make the request and fails everytime. I dont know what i missing between my client and my response. Any help?