Do not use "using" for WCF Clients





5.00/5 (2 votes)
Or you can use T4 to generate a static class wrapper around the service. Then your call can look like this:SvcWrapper.Login(username, password);The full explanation and sample code is located here[^].