Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you know if a TSoapConnection is active?

Status
Not open for further replies.

marflo500

IS-IT--Management
May 16, 2007
36
DM
Hi all,

I want to test whether or not a TSoapConnection can actually communicate with the server before applying updates. Reading the Active property of the TSoapConnection does not help as it maintains a 'True' value even if the connection drops. I tested it by launching my app and then stopping the IIS service on the server - the connection still remained active but the app raised an ESOAPHTTPException after I tried to ApplyUpdates for a Client Dataset. Is there any other way to do this besides putting the ApplyUpdates code of the TClientDataset in a try...except block? I want to use the TSoapConnection to determine if there is connectivity.

Thanks for your help.
Liam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top