>  Q&A  >  본문

웹 서비스에 액세스하기 위해 SSL 프로토콜을 사용하는 php7에 문제가 있습니다

오류: SoapFault 예외: [WSDL] SOAP-ERROR: WSDL 구문 분석: 다음에서 로드할 수 없습니다. 'https://xxxxx/api?wsdl': 외부를 로드하지 못했습니다. 엔터티 "https://xxxxxxx/api?wsdl" D:wwwcompare.php:22 스택 추적: #0 D:wwwcompare.php(22): SoapClient->SoapClient('https://xxx...', Array) #1 {main}

코드는 다음과 같습니다.

$opts =array('http' => array('user_agent' => 'PHPSoapClient'),'ssl'=>array('verify_peer'=>false ,'verify_host'=>false,"verify_peer_name"=>false));

$url=" https:/ /xxxxxxx/api?wsdl";

$params= array('encoding' => 'UTF-8','soap_version'=>SOAP_1_1,'trace' => 1, "예외" = > 1 , "connection_timeout" => 180,'username' => '*****','stream_context' =>

$client =new SoapClient($url,$params);

그리고 php.ini 설정에는 문제가 없어서 openssl과 비누가 오픈되었습니다

해결방법을 알려주실 수 있나요? ? ? ?

不是我不是我914일 전937

모든 응답(1)나는 대답할 것이다

  • 不是我

    不是我2022-03-20 16:32:38

    시스템 환경은 windows2012+apche2.4+PHP7.2

    회신하다
    0
  • 취소회신하다