Reputation: 973
I am in the path of learning WebServices and WCF. So far I understand that webservice or Wcf contains web methods which can be consumed by client side or on the service side too. But my question is why do we need to publish/deploy a webservices or wcf in IIS or some other platform ? Cannot we just use them like methods in class.
Can anyone explain why?
Upvotes: 0
Views: 346
Reputation: 77896
why do we need to publish/deploy a webservices or wcf
In order to make it available over internet (or) intranet (make it globally accessible). If you don't publish your service then it is not accessible by others since it can't be found/discovered.
Once you publish it, then your service can be discovers using the specific server name + port
configuration where the service is listening for any request and your service client can use the generated WSDL
file to create a proxy channel for consuming the service.
Upvotes: 1