public static GetEventsResult GetEventsAroundPOI(LocationPoint PointOfInterest) { BasicHttpBinding basicHttpBinding = new BasicHttpBinding(); EndpointAddress endpointAddress = new EndpointAddress("http://localhost:56071/CaloomMainService.svc"); ICaloomMainService service = new ChannelFactory< ICaloomMainService >(basicHttpBinding, endpointAddress).CreateChannel(); var serviceResponse = service.GetEventsAroundPOI(PointOfInterest); return serviceResponse; }