SoapFault exception: Could not connect to host

后端 未结 27 1634
-上瘾入骨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

    if ujava's solution can't help you,you can try to use try/catch to catch this fatal,this works fine on me.

    try{
        $res = $client->__call('LineStopQueryJson',array('Parameters' => $params));
    }catch(SoapFault $e){
        print_r($client);
    }
    

提交回复
热议问题