SoapFault exception: Could not connect to host

后端 未结 27 1648
-上瘾入骨i
-上瘾入骨i 2020-12-01 07:47

Sometimes fail to call the web service.

This problem happens all the time.

What could be the problem?

Error:
    SoapFault exception: [HTTP]          


        
27条回答
  •  感情败类
    2020-12-01 08:34

    there is a soap config section in your php.ini file, which control the wsdl access cache, may be shown as:

    [soap] 
    ; Enables or disables WSDL caching feature. 
    soap.wsdl_cache_enabled=1 ; 
    Sets the directory name where SOAP extension will put cache files. 
    soap.wsdl_cache_dir="/tmp" 
    ; (time to live) Sets the number of second while cached file will be used ; instead of original one.  
    soap.wsdl_cache_ttl=86400
    

    if wsdl file cache is enabled, it may cause this problem when changing wsdl URI in php code. in this example, you can just delete file start with wsdl- under /tmp directory. or you just set soap.wsdl_cache_enabled=0; and soap.wsdl_cache_ttl=0; PHP will fetch the wsdl file every-time you visit the page.

提交回复
热议问题