久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <small id='yiequ'></small><noframes id='yiequ'>

        <i id='yiequ'><tr id='yiequ'><dt id='yiequ'><q id='yiequ'><span id='yiequ'><b id='yiequ'><form id='yiequ'><ins id='yiequ'></ins><ul id='yiequ'></ul><sub id='yiequ'></sub></form><legend id='yiequ'></legend><bdo id='yiequ'><pre id='yiequ'><center id='yiequ'></center></pre></bdo></b><th id='yiequ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yiequ'><tfoot id='yiequ'></tfoot><dl id='yiequ'><fieldset id='yiequ'></fieldset></dl></div>
      1. <tfoot id='yiequ'></tfoot>
          <bdo id='yiequ'></bdo><ul id='yiequ'></ul>
        <legend id='yiequ'><style id='yiequ'><dir id='yiequ'><q id='yiequ'></q></dir></style></legend>

        如何在 PHP 中使用 SSL 證書發送 SOAP 請求?

        how to send SOAP request with SSL certificate in PHP?(如何在 PHP 中使用 SSL 證書發送 SOAP 請求?)
      2. <i id='cQI1s'><tr id='cQI1s'><dt id='cQI1s'><q id='cQI1s'><span id='cQI1s'><b id='cQI1s'><form id='cQI1s'><ins id='cQI1s'></ins><ul id='cQI1s'></ul><sub id='cQI1s'></sub></form><legend id='cQI1s'></legend><bdo id='cQI1s'><pre id='cQI1s'><center id='cQI1s'></center></pre></bdo></b><th id='cQI1s'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cQI1s'><tfoot id='cQI1s'></tfoot><dl id='cQI1s'><fieldset id='cQI1s'></fieldset></dl></div>

            <bdo id='cQI1s'></bdo><ul id='cQI1s'></ul>
          • <small id='cQI1s'></small><noframes id='cQI1s'>

                  <tbody id='cQI1s'></tbody>

                1. <legend id='cQI1s'><style id='cQI1s'><dir id='cQI1s'><q id='cQI1s'></q></dir></style></legend>
                2. <tfoot id='cQI1s'></tfoot>
                  本文介紹了如何在 PHP 中使用 SSL 證書發送 SOAP 請求?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試發送帶有 DER 證書的 SOAP - PHP 請求(這意味著該證書沒有私鑰)但沒有成功.

                  I'm trying to send a SOAP - PHP request with a DER certificate (that means the certificate don't have a privateKey) but no success.

                  $local_cert = FULL_PATH_TO_MY_CERT;
                  
                     $client = new SoapClient($wsdl, array(
                                  'local_cert' => $local_cert,
                                  'trace' => 1,
                                  'exceptions' => 1,
                                  'soap_version' => SOAP_1_1,
                                  'encoding' => 'ISO-8859-1',
                                  'compression' => (SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP),
                                  'location' => 'https://webserviceurl:port/ws/servlet/ws'
                              ));
                  

                  只有我收到此錯誤:

                  警告 (2): SoapClient::SoapClient() [soapclient.soapclient]: 無法設置私鑰文件 `PATHTOMYLOCALCERT' [APPVendorWebServicesMyWS.php, line 206]

                  Warning (2): SoapClient::SoapClient() [soapclient.soapclient]: Unable to set private key file `PATHTOMYLOCALCERT' [APPVendorWebServicesMyWS.php, line 206]

                  警告 (2):SoapClient::SoapClient() [soapclient.soapclient]:未能創建 SSL 句柄 [APPVendorWebServicesMyWS.php,第 206 行]

                  Warning (2): SoapClient::SoapClient() [soapclient.soapclient]: failed to create an SSL handle [APPVendorWebServicesMyWS.php, line 206]

                  警告 (2):SoapClient::SoapClient() [soapclient.soapclient]:無法啟用加密 [APPVendorWebServicesMyWS.php,第 206 行]

                  Warning (2): SoapClient::SoapClient() [soapclient.soapclient]: Failed to enable crypto [APPVendorWebServicesMyWS.php, line 206]

                  警告(2):SoapClient::SoapClient(https://webserviceurl:port/ws/servlet/ws?wsdl) [soapclient.soapclient]: failed to open stream: operation failed [APPVendorWebServicesMyWS.php,第 206 行]

                  Warning (2): SoapClient::SoapClient(https://webserviceurl:port/ws/servlet/ws?wsdl) [soapclient.soapclient]: failed to open stream: operation failed [APPVendorWebServicesMyWS.php, line 206]

                  警告(2):SoapClient::SoapClient() [soapclient.soapclient]:I/O 警告:無法加載外部實體https://webserviceurl:port/ws/servlet/ws?wsdl"[APPVendorWebServicesMyWS.php,第 206 行]

                  Warning (2): SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "https://webserviceurl:port/ws/servlet/ws?wsdl" [APPVendorWebServicesMyWS.php, line 206]

                  但我發現了一個小技巧(在 php.net 中)使用函數 file_get_contents($local_cert);錯誤消失了.

                  but I've found a little trick (in php.net) using the function file_get_contents($local_cert); the errors are gone.

                  但是出現了一個新的錯誤.

                  But a new error come from.

                  結果:string(773)錯誤讀取前綴:Action.Execute"

                  Result : string(773) "Error reading prefix:Action.Execute"

                  我的意思是......上面的這個錯誤......來自WebService?因為它無法通過我的請求進行身份驗證?

                  What I mean is... this error above... is comming from the WebService? because it cannot authenticate with my request?

                  謝謝大家.(感謝您的回答)

                  Thanks everybody. (appreciate your answers)

                  推薦答案

                  我在soap調用中使用SSL證書.

                  I'm using SSL certificate in my soap call.

                  就我而言,我在服務器上為 wsdllocal_cert 提供絕對路徑我已經在我的班級中定義了這些.請注意,我使用的是 .pem 格式的證書.

                  In My case I'm giving absolute path on my server for wsdl and for local_cert I've already defined those in my class. Please note that I'm using my certificate in .pem format.

                  public $local_cert = "/var/www/.../webroot/cert.pem";
                  public $wsdl = "/var/www/.../webroot/my_wsdl.wsdl";
                  
                  $this->client = new SoapClient($this->wsdl, array(
                          "trace"         => 1, 
                          "exceptions"    => true, 
                          "local_cert"    => $this->local_cert, 
                          "uri"           => "urn:xmethods-delayed-quotes",
                          "style"         => SOAP_RPC,
                          "use"           => SOAP_ENCODED,
                          "soap_version"  => SOAP_1_2 ,
                          "location"      => $this->location
                      )
                  );
                  

                  在我的證書中有兩部分.證書和 RSA 私鑰.

                  In my certificate there are 2 parts. Certificate and RSA Private Key.

                  (1)-----BEGIN CERTIFICATE-----
                  MIIFjzCC....
                  ....
                  -----END CERTIFICATE-----
                  (2)-----BEGIN RSA PRIVATE KEY-----
                  MIIEpAI....
                  ....
                  ww==
                  -----END RSA PRIVATE KEY----
                  

                  最重要的是,您應該使用 https 鏈接進行肥皂調用.這對我來說很好用.

                  And most important you should use https link for making a soap call. This is working fine for me.

                  希望對你有幫助.

                  這篇關于如何在 PHP 中使用 SSL 證書發送 SOAP 請求?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現)
                  Sending a byte array from PHP to WCF(將字節數組從 PHP 發送到 WCF)

                  <small id='36xbE'></small><noframes id='36xbE'>

                3. <tfoot id='36xbE'></tfoot>
                  • <legend id='36xbE'><style id='36xbE'><dir id='36xbE'><q id='36xbE'></q></dir></style></legend>
                      <tbody id='36xbE'></tbody>
                      <i id='36xbE'><tr id='36xbE'><dt id='36xbE'><q id='36xbE'><span id='36xbE'><b id='36xbE'><form id='36xbE'><ins id='36xbE'></ins><ul id='36xbE'></ul><sub id='36xbE'></sub></form><legend id='36xbE'></legend><bdo id='36xbE'><pre id='36xbE'><center id='36xbE'></center></pre></bdo></b><th id='36xbE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='36xbE'><tfoot id='36xbE'></tfoot><dl id='36xbE'><fieldset id='36xbE'></fieldset></dl></div>

                        • <bdo id='36xbE'></bdo><ul id='36xbE'></ul>

                            主站蜘蛛池模板: 成人在线网 | 亚洲免费二区 | 久久久高清 | 咪咪色影院 | 国产精品香蕉 | 午夜久久久久久久 | 四虎精品视频 | av网址在线播放 | 成人精品三级av在线看 | 国产综合亚洲精品一区二 | 日韩中文字幕一区二区三区 | 在线观看av免费 | 超碰在线视屏 | 国产一区二区视频在线观看 | 黄色激情视频在线观看 | 国精产品99永久一区一区 | 91在线亚洲 | 日韩一区在线视频 | 福利视频在线 | 色在线视频 | 日韩久久网 | 国产在线观看一区 | 欧美激情网 | 久久久久久亚洲精品 | 日韩毛片在线 | 男男成人高潮片免费网站 | 亚洲一区在线看 | 亚洲午夜视频在线观看 | 欧美日韩在线看 | av中文网| 高潮毛片无遮挡免费看 | 成人免费毛片aaaaaa片 | 五月天婷婷基地 | 中文字幕在线看片 | 中文字幕在线视频播放 | av免费在线观看网站 | 午夜一级视频 | 亚洲第一黄色 | 成人黄色av | 国产一区在线看 | 亚洲精品中文字幕乱码三区91 |