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: 321

I have a Visual Studio 2008 solution that's currently consisting of three projects:

  1. A DataFactory project for Business Logic/Data Access.
  2. A Web project consisting of the actual user interface, pages, controls, etc.
  3. 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:

  1. Add the reference to the Web project.
  2. Add the reference to the Web.Core project, and create a wrapper method that Web will call to consume the web service.
  3. 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

Related posts about .NET

Related posts about web-services