How can you define an Endpoint problematically in WCF ?

 Posted by Akiii on 4/12/2012 | Category: WCF Interview questions | Views: 2573 | Points: 40
Answer:

ServiceHost s = new ServiceHost(typeof(EmployeeReservations));

s.AddEndpoint(typeof(EmployeeReservations), new BasicHttpBinding(),
"http://www.google.com/employee/emp.svc");


EmployeeReservations is the name of the contract.
http://www.google.com/employee/emp.svc is the address of the web service.



Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response