久久久久久久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 證書發(fā)送 SOAP 請求?

        how to send SOAP request with SSL certificate in PHP?(如何在 PHP 中使用 SSL 證書發(fā)送 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 證書發(fā)送 SOAP 請求?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正在嘗試發(fā)送帶有 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'
                              ));
                  

                  只有我收到此錯(cuò)誤:

                  警告 (2): SoapClient::SoapClient() [soapclient.soapclient]: 無法設(shè)置私鑰文件 `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]:未能創(chuàng)建 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 警告:無法加載外部實(shí)體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]

                  但我發(fā)現(xiàn)了一個(gè)小技巧(在 php.net 中)使用函數(shù) file_get_contents($local_cert);錯(cuò)誤消失了.

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

                  但是出現(xiàn)了一個(gè)新的錯(cuò)誤.

                  But a new error come from.

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

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

                  我的意思是......上面的這個(gè)錯(cuò)誤......來自WebService?因?yàn)樗鼰o法通過我的請求進(jìn)行身份驗(yàn)證?

                  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調(diào)用中使用SSL證書.

                  I'm using SSL certificate in my soap call.

                  就我而言,我在服務(wù)器上為 wsdllocal_cert 提供絕對路徑我已經(jīng)在我的班級(jí)中定義了這些.請注意,我使用的是 .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----
                  

                  最重要的是,您應(yīng)該使用 https 鏈接進(jìn)行肥皂調(diào)用.這對我來說很好用.

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

                  希望對你有幫助.

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

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

                  相關(guān)文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務(wù)器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機(jī))
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實(shí)現(xiàn))
                  Sending a byte array from PHP to WCF(將字節(jié)數(shù)組從 PHP 發(fā)送到 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>

                            主站蜘蛛池模板: 韩国成人在线视频 | 在线视频一区二区 | 免费成人在线网站 | 国产美女免费视频 | 国产无套一区二区三区久久 | 综合久久久久 | 国产成人短视频在线观看 | 羞羞的视频免费在线观看 | 大香网伊人 | 国内精品久久影院 | 日日草天天干 | 欧美精品一区二区三区四区 在线 | 日韩国产精品一区二区三区 | 日韩精品一区在线观看 | 91视频大全 | 中文字幕加勒比 | 亚洲先锋影音 | www国产亚洲精品久久网站 | 91精品国产欧美一区二区成人 | 成人无遮挡毛片免费看 | 一区二区三区四区在线 | 久久久久久久久久久久久91 | 91麻豆精品国产91久久久更新资源速度超快 | 久久男人天堂 | 久久精品亚洲国产 | 日韩视频在线观看一区二区 | 欧美v免费 | 黄色毛片在线观看 | 国产九九九| 毛片.com| 欧美在线一区二区三区 | 国产精品区一区二区三区 | 国产一区二区三区网站 | 亚洲精品女优 | 久久国产欧美日韩精品 | 欧美日在线 | www免费视频 | www.99re| 蜜桃传媒av| 亚洲二区视频 | 日韩午夜影院 |