Recently work encountered a need to use PHP SOAP call remote function interface query a data volume at level hundreds of millions of data query operation, then the problem comes, because of the large amount of data, the interface response time will inevitably increase to a very scary degree, about 2 minutes, Does it take longer to get the result of this execution than the soap time limit? If there are other solutions, what should be done to get the results of the interface's response.
Reply content:
Recently work encountered a need to use PHP SOAP call remote function interface query a data volume at level hundreds of millions of data query operation, then the problem comes, because of the large amount of data, the interface response time will inevitably increase to a very scary degree, about 2 minutes, Does it take longer to get the result of this execution than the soap time limit? If there are other solutions, what should be done to get the results of the interface's response.
SOAP is a Simple Object Access Protocol (the acronym for Easy objects, Access Protocol), which is used to access Web Service. SOAP typically uses HTTP protocols at the bottom, so each invocation is bound to have a time limit (TimeOut). But this limit is server side.
According to your description, you are the user of the service, belong to the Client, as long as the Server can ensure that the correct response before the connection continues to open, theoretically you can get the desired results.
You can try "PHP Soap Client Timeout" to search for keywords.
Here are the top 2 results from Google:
It is recommended to use a RESTful form of interface.