title: What is the difference between a web service and application layer of code in an application server
body: <p>Hello I am a newbie to n-tier architecture and was trying to find out the difference between what an application server hosting application layer of code does, and what a web service does?</p>
  
  <p>So I'll tell you people my understanding of the whole n-tier concept, we have the UI -> Web Server -> business logic/application logic on an Application server -> Database Server. (Of course load balancers and multiple server instances would also be existent to fasten and store the state of processes)</p>
  
  <p>But to be specific, the business logic layer would not be tied to a UI, so it is more or less independent and can be reused. </p>
  
  <p>A web service on an other hand too provides functionality similar to the business logic, where it is not tied to a UI, and can be reused for different cases.</p>
  
  <p>Could anybody explain if what I just explained above is right? And as I did mention earlier, I am a newbie to this, so if this sounds stupid or naive please do not bash me :)</p>