webservice-php calling remote function interface problems through SOAP

Source: Internet
Author: User
Tags soap client
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:

  • Php:soapclient::soapclient-manual

  • Web services-php soapclient timeout-stack Overflow

It is recommended to use a RESTful form of interface.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.