code_junkie

Closing A SOAP Connection

Nov 13th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. SOAPServer.Service Soap = new SOAPServer.Service(); // SOAPServer is a web reference
  2. Soap.Timeout = 30000;
  3. string[] SOAPReturnResult = Soap.DepotData(100, "Test");
  4. Soap.Dispose();
  5.  
  6. using (SOAPServer.Service Soap = new SOAPServer.Service())
  7. {
  8. Soap.Timeout = 30000;
  9. string[] SOAPReturnResult = Soap.DepotData(100, "Test");
  10. }
Add Comment
Please, Sign In to add comment