First you need to make sure that your client and service are running on the same thread.
Depending on the error message, you need to increase the sendtimeout or receivetimemout time. In addition, there