Tom Knowlton
asked on
Necessary or optional to close a webservice client connection
If I have created a web service client that makes a call to a method exposed by a web service, do I need to perform some sort of close when I am finished using the object?
ConsoleApplicationTomTest. ServiceRef erence1.Se rvice1Clie nt sc = new ServiceReference1.Service1 Client();
string a = sc.GetData(1);
Console.WriteLine(a);
Console.ReadLine();
/////////// sc.CloseClientConnection( ) ??????????
ConsoleApplicationTomTest.
string a = sc.GetData(1);
Console.WriteLine(a);
Console.ReadLine();
/////////// sc.CloseClientConnection( ) ??????????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
https://www.experts-exchange.com/questions/27630729/Web-service-unclosed-connections.html