title: Consuming a web reference in a class library (C#/.NET)
body: <p>I have a project that uses a class library for the business layer functionality (database access, etc.). A web application sits on top of this. I have a web service that I would like to call in the class library. Every time I add a 'service reference' (I am using VS2008) to the class library, everything seems to work OK. The name of the web service is 'EmployeeService'. However, when I try to access it from code, intellisense gives me options like: </p>
  
  <p>'EmployeeServiceSoap'</p>
  
  <p>'EmployeeServiceSoapChannel'</p>
  
  <p>'EmployeeServiceSoapClient'</p>
  
  <p>and lots of 
  '...Request'</p>
  
  <p>'...RequestBody'</p>
  
  <p>'...RequestResponse' types. </p>
  
  <p>I can't access my EmployeeService class even if I write it anyway the compiler will complain. Any ideas? Thanks for any help...</p>