如何修复错误:1408F10B:SSL例程:ssl3_get_record:版本号错误

时间:2019-08-06 04:07:22

标签: php laravel nusoap

我想从wsdl外部api获取令牌。我使用nusoap_client来做到这一点。但是当我使用dd($error);进行调试时,出现了这样的错误HTTP ERROR: cURL ERROR: 35: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

如何在nusoap_client中修复此错误?

这是我的功能代码:

public function testapi(Request $request){
    $url = 'https://xxx.xx.xx.xx:xxxx/services/SecurityProvider?wsdl';
    $client = new \nusoap_client($url, 'wsdl');
    $operation = 'SecurityProviderAuthenticateRequest';
    $params = array(
        'name' => 'user',
        'password' => 'password'
        );
    $hasil1 = $client->call($operation, $params);
    $error = $client->getError();
    dd($error);
    exit();
}

0 个答案:

没有答案