How to let developer know what methods WCF is exposing to client

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:

– Client
– Proxy
– Service
– Service Host
– Service Contract
–  Operation Contract
– Data Contract
– Data Member
– Endpoint
– Address
– Binding
– Contract

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.



Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:


Komentujesz korzystając z konta Wyloguj / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Wyloguj / Zmień )

Zdjęcie na Facebooku

Komentujesz korzystając z konta Facebook. Wyloguj / Zmień )

Zdjęcie na Google+

Komentujesz korzystając z konta Google+. Wyloguj / Zmień )

Connecting to %s