// Instead of setting the security mode in the configuration file,
// initialize the service client variable with the Transport
// security mode.
SearchServiceClient client = new SearchServiceClient(new BasicHttpBinding(BasicHttpSecurityMode.Transport), new EndpointAddress("https://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc");