Web service reference location?
Posted
by Damien Dennehy
on Stack Overflow
See other posts from Stack Overflow
or by Damien Dennehy
Published on 2010-06-18T15:59:03Z
Indexed on
2010/06/18
16:03 UTC
Read the original article
Hit count: 341
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.
© Stack Overflow or respective owner