Web service reference location?
- by Damien Dennehy
I have a Visual Studio 2008 solution that's currently consisting of three projects:
A DataFactory project for Business Logic/Data Access.
A Web project consisting of the actual user interface, pages, controls, etc.
A Web.Core project consisting of utility classes, etc.
The application requires consuming a web service. Normally I'd add the service reference to the Web project, but I'm not sure if this is best practice or not.
The following options are open to me:
Add the reference to the Web project.
Add the reference to the Web.Core project, and create a wrapper method that Web will call to consume the web service.
Add a new project called Web.Services, and copy step 2.
This project is expected to increase in size so I'm open to any suggestions.