Wednesday, February 18, 2009

SVC and EndPoint

A *.svc file on the WCF host server has following declaration:

《 %@ ServiceHost Service="SilverService" Debug="true" % 》

Service "SilverService" is also defined in the web.config file "system.serviceModel"-"services" section. Usually it's a name extracted from a DLL class.

"SilverService" is the name of the service, and the service needs to define an EndPoint which has ABC(Address, Binding,Contract)

Contract points to the Interface of a service.

No comments:

Blog Archive