- Open visual studio developer command prompt.
- Start your service and make sure it is up and running.
- Copy the URL of service .
- In visual studio command prompt type ” svcutil [URL] /out:filename.cs /config:filename.config
This will generate two files in the local as mentioned above in the command prompt.