Resolving PHP SOAP Intermittent errors solution:soap WSDL error-"Failed to load external entity"

Source: Internet
Author: User
Tags soap wsdl
For a long time did not write blog, usually the content recorded in the impression notes. But I was plagued by this problem for a long time, the degree Niang, Google turned over, most of the answers can not solve my problem.

The details of the problem are as follows, the PHP soap interface, which intermittently occurs with the SOAP WSDL error-"Failed to load external entity". The key to the problem is "intermittent", and it's easier to check for errors if you keep an error.

The solution on the network is either to open OpenSSL or to change to no WSDL mode, and none of the above will solve my problem.

Finally, in the official forum of Zend found a method, and the source point is the PHP manual, or that sentence, encountered a problem to read more manual. ORZ Manual!

If Libxml_disable_entity_loader () have been called already, add before each soapclient instantiation:
Libxml_disable_entity_loader (FALSE);

Above any calls to instantiate SoapClient.

Before all soapclient are initialized (at the top of the page), add this sentence Libxml_disable_entity_loader (false);

Original link http://forums.zend.com/viewtopic.php?f=8&t=116708#p225468

The above describes the resolution of the PHP SOAP intermittent error Solution:soap WSDL-"failed to load external entity", including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.