1.A Service is the self contained business function that exposes functionality contained within it. As well as which is not just XML or HTTP.
In WCF, all services expose contracts. The contract is a platform-neutral and standard way of describing what the service does. WCF defines four types of contracts.
Most of the WCF functionalities are included in a single assembly called System.ServiceModel.dll in the
How to chek in Web.config???
Check your web.config file whether this line is present or not:
In WCF, all services expose contracts. The contract is a platform-neutral and standard way of describing what the service does. WCF defines four types of contracts.
- Service contracts: Describe which operations the client can perform on the service.
- Data contracts: Define which data types are passed to and from the service. WCF defines implicit contracts for built-in types such as int and string, but you can easily define explicit opt-in data contracts for custom types.
- Fault contracts: Define which errors are raised by the service, and how the service handles and propagates errors to its clients.
- Message contracts: Allow the service to interact directly with messages.
Most of the WCF functionalities are included in a single assembly called System.ServiceModel.dll in the
System.ServiceModel namespace. How to chek in Web.config???
Check your web.config file whether this line is present or not:
endpoint address="" binding="wsHttpBinding" contract="IService"Address: will be your localhostBinding: This service useswsHttpBindingbinding.Contract: Remember? It's yourContractname which is in IService.cs file.
No comments:
Post a Comment