I have created a SharePoint feature that has an application page which uses a wcf service to get some data. I have added a service reference to the WCF service using vs2010 service reference options. At the moment I have hard coded the service url (for ex., http://localhost:2000/vti_bin/service1.svc) and passing the url to the proxy.
When I add the service reference it also creates app.config which contains the necessary service bindings settings. When I deploy the feature how does the application page use service bindings and do I need to manually add the Service URL and Service Bindings settings to the web.config file for each web application.
What is the recommended approach to reference a WCF service in a application page?