- Open Visual Studio 2008.
- Create new project: Visual C# WCF Service Application.
- Press [F5] to start debugging. It should be OK.
Remove default namespace
- In IService1.cs and Service1.svc.cs, remove "[Namespace]." string.
- In Service1.svc, remove "[Namespace]." string.
- In Web.config, remove "[Namespace]." string.
- Press [F5] to start debugging. It should be OK.
Rename IService1 interface
- Rename IService1.cs to "[NewServiceInterface].cs"
- In Service1.svc.cs and [NewServiceInterface].cs, rename IService1 to [NewServiceInterface].
- In Web.config, rename IService1 to [NewServiceInterface].
- Press [F5] to start debugging. It should be OK.
Rename Service1 implementation
- Rename Service1.svc to "[NewService].svc"
- In [NewService].svc, rename Service1 to [NewService]
- In [NewService].svc.cs, rename Service1 to [NewService]
- In Web.config, rename Service1 to [NewService].
- Press [F5] to start debugging. It should be OK.
沒有留言:
張貼留言