How to Set Network Timeout When Calling a WSDL method?

Normally I can call a WSDL service quickly, but of late the service takes longer than expected. How can I code so that PowerBuilder doesn't have to wait for the WSDL service to finish after an unreasonable time and informs the user that the service is taking longer than anticipated?