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