<small id='1wPNQ'></small><noframes id='1wPNQ'>

    <i id='1wPNQ'><tr id='1wPNQ'><dt id='1wPNQ'><q id='1wPNQ'><span id='1wPNQ'><b id='1wPNQ'><form id='1wPNQ'><ins id='1wPNQ'></ins><ul id='1wPNQ'></ul><sub id='1wPNQ'></sub></form><legend id='1wPNQ'></legend><bdo id='1wPNQ'><pre id='1wPNQ'><center id='1wPNQ'></center></pre></bdo></b><th id='1wPNQ'></th></span></q></dt></tr></i><div id='1wPNQ'><tfoot id='1wPNQ'></tfoot><dl id='1wPNQ'><fieldset id='1wPNQ'></fieldset></dl></div>
        <bdo id='1wPNQ'></bdo><ul id='1wPNQ'></ul>
    1. <tfoot id='1wPNQ'></tfoot>

    2. <legend id='1wPNQ'><style id='1wPNQ'><dir id='1wPNQ'><q id='1wPNQ'></q></dir></style></legend>

      PHP SoapClient 是否支持 HTTPS 连接

      时间:2023-05-22

      • <bdo id='szefe'></bdo><ul id='szefe'></ul>
          <tbody id='szefe'></tbody>
        <legend id='szefe'><style id='szefe'><dir id='szefe'><q id='szefe'></q></dir></style></legend>
      • <i id='szefe'><tr id='szefe'><dt id='szefe'><q id='szefe'><span id='szefe'><b id='szefe'><form id='szefe'><ins id='szefe'></ins><ul id='szefe'></ul><sub id='szefe'></sub></form><legend id='szefe'></legend><bdo id='szefe'><pre id='szefe'><center id='szefe'></center></pre></bdo></b><th id='szefe'></th></span></q></dt></tr></i><div id='szefe'><tfoot id='szefe'></tfoot><dl id='szefe'><fieldset id='szefe'></fieldset></dl></div>

        • <tfoot id='szefe'></tfoot>

              • <small id='szefe'></small><noframes id='szefe'>

                本文介绍了PHP SoapClient 是否支持 HTTPS 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我在 Windows 上使用 XAMPP 并尝试使用 PHP soap 扩展 SoapClient.我正在尝试使用以下代码加载托管在 HTTPS 站点中的 WSDL 文件

                我收到以下错误:

                <块引用>

                致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP 错误:解析 WSDL:无法从

                我在使用 php 5.6 的 Windows 上遇到了同样的问题,并且在使用 php 5.6 的 Linux 上运行良好.

                您可以使用openssl_get_cert_locations函数来查看证书位置是什么.

                到目前为止,我无法找到解决方案.

                I'm using XAMPP on Windows and try to work with PHP soap extension SoapClient. I'm trying to load a WSDL file hosted in HTTPS site using the following code

                <?php
                    $myClient=new SoapClient("https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl");
                ?>
                

                I get the following error:

                Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl' : failed to load external entity "https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl" in C:xampphtdocsdevw3schoolssoapClientindex.php:2 Stack trace:
                #0 C:xampphtdocsdevw3schoolssoapClientindex.php(2): SoapClient->SoapClient('https://smi.sp....')
                #1 {main} thrown in C:xampphtdocsdevw3schoolssoapClientindex.php on line 2

                Now I took a network capture during the request and saw that HTTPS communication does not work OK on SSL Level. Wireshark shows a packet on Server Key Exchange my workstation responds with:

                TLSv1 Record Layer: Alert (Level: Fatal, Description: Certificate Unknown)

                Using nuSOAP client or soapUI utility from the same computer, I'm able to connect to the service normally. So no certificate problems I guess.

                So definately it's something with SOAP extension and SSL communication. Can anyone help? Give hints what to look for?

                解决方案

                it has to do with this change in php 5.6: http://php.net/manual/en/migration56.openssl.php

                I have the same trouble on Windows with php 5.6 and it works fine on Linux with php 5.6.

                You can use the function openssl_get_cert_locations to see what are the certificate locations.

                So far I wasn't able to find a solution.

                这篇关于PHP SoapClient 是否支持 HTTPS 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何从此xml在php中生成soap请求? 下一篇:SoapVar/Param 和 SOAP 中嵌套的重复元素

                相关文章

                最新文章

                  <bdo id='3vIvX'></bdo><ul id='3vIvX'></ul>
              • <tfoot id='3vIvX'></tfoot>
                  <i id='3vIvX'><tr id='3vIvX'><dt id='3vIvX'><q id='3vIvX'><span id='3vIvX'><b id='3vIvX'><form id='3vIvX'><ins id='3vIvX'></ins><ul id='3vIvX'></ul><sub id='3vIvX'></sub></form><legend id='3vIvX'></legend><bdo id='3vIvX'><pre id='3vIvX'><center id='3vIvX'></center></pre></bdo></b><th id='3vIvX'></th></span></q></dt></tr></i><div id='3vIvX'><tfoot id='3vIvX'></tfoot><dl id='3vIvX'><fieldset id='3vIvX'></fieldset></dl></div>
                  <legend id='3vIvX'><style id='3vIvX'><dir id='3vIvX'><q id='3vIvX'></q></dir></style></legend>

                  <small id='3vIvX'></small><noframes id='3vIvX'>