In this post I want to introduce some basics about WCF which are my summary knowledge about WCF what I have learned by preparing to create SmileTable application architecture.
Until now I have creating applications based on OOA – Object Oriented Architecture . I have decided to create SmileTable application In another way. This another way is SOA – Service Oriented Architecture.
What is diffenernce between these two patterns ?
Basicly In SOA client application is connected to services. Services expose to client application methods moslty by SOAP protocol, In very similiar way to Web API what I mentioned In first part of WCF series. We can have Desktop application and for example Web application both connected to the same service.
In opposit to OOA In SOA databse live on the service side. That is mean services are connected to database and Client application connect to service’s database.
Basicly with WCF are related some terms which are important. It is:
– Service Host
– Service Contract
– Operation Contract
– Data Contract
– Data Member
– SOAP, WSDL, REST
Probably You ask If WCF is simmilar to Web API so what is the way to know what metod are shared to client application ?
There is neccessery to create additional configuration on base which is creating WSDL document. This WSDL expose SOAP message with avaliable service methods. It Allows developers generate Proxy classes which are using to communicate with services.
To access that SOAP message all You have to do is type your endpoint adress to browser. For example ://localhost:8080/?wsdl
This is example of my service configuration from Service App.config:
The picture below show example of SOAP message generated by that additional endpoint configuration.
I will describe how WCF works on SmileTable application example In next post.