Answer the question
In order to leave comments, you need to log in
How to deal with timeout in WSDL with SOAP?
Good morning!
Help overcome this. There is a WSDL service, a SOAP connection. Service is slow. Sometimes it hangs tightly, and sometimes it takes a long time to answer. You need to send him data, and then get a response. Set default_socket_timeout to 20 seconds. As a result, the data sometimes goes to the service, it writes them to itself, but I don’t have time to get an answer and, as a result, I can’t write anything to the database. If you remove the timeout, then at the moments when the service hangs tightly, my server issues a timeout and crashes with a 500 error. It turns out that it is necessary to put a timeout. But how do I know if the service has accepted my data?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question