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

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

          <bdo id='kWHVC'></bdo><ul id='kWHVC'></ul>

        SOAP 错误:解析 WSDL:无法从 &lt;URL&gt; 加载

        时间:2023-05-22
          <bdo id='3B25l'></bdo><ul id='3B25l'></ul>
              <i id='3B25l'><tr id='3B25l'><dt id='3B25l'><q id='3B25l'><span id='3B25l'><b id='3B25l'><form id='3B25l'><ins id='3B25l'></ins><ul id='3B25l'></ul><sub id='3B25l'></sub></form><legend id='3B25l'></legend><bdo id='3B25l'><pre id='3B25l'><center id='3B25l'></center></pre></bdo></b><th id='3B25l'></th></span></q></dt></tr></i><div id='3B25l'><tfoot id='3B25l'></tfoot><dl id='3B25l'><fieldset id='3B25l'></fieldset></dl></div>
              <legend id='3B25l'><style id='3B25l'><dir id='3B25l'><q id='3B25l'></q></dir></style></legend>

                  <tbody id='3B25l'></tbody>
                  <tfoot id='3B25l'></tfoot>

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

                  本文介绍了SOAP 错误:解析 WSDL:无法从 &lt;URL&gt; 加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在 PHP 中:我收到一个错误:

                  In PHP: I am getting an error:

                  SOAP 错误:解析 WSDL:无法从 'http://xxx.xxxx.asmx 加载?WSDL' :无法加载外部实体 "http://xxx.xxxx.asmx?WSDL"

                  SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://xxx.xxxx.asmx?WSDL' : failed to load external entity "http://xxx.xxxx.asmx?WSDL"

                  我的代码是:

                  <?php
                  header('Content-Type: text/plain');
                  if (!class_exists('SoapClient')) {
                      die ("You haven't installed the PHP-Soap module.");
                  }
                  
                  ini_set('max_execution_time', 1);
                  try {
                      $options = array(
                          'soap_version' => SOAP_1_2,
                          'exceptions'   => true,
                          'trace'        => 1,
                          'cache_wsdl'   => WSDL_CACHE_NONE
                      );
                      $client = new SoapClient('http://xxx.xxxx.asmx?WSDL', $options);
                      // Note where 'CreateIncident' and 'request' tags are in the XML
                      $results = $client->CreateIncident(
                          array(
                              'FirstName'         => 'gyaan',
                              'LastName'          => 'p',
                              'Email'             => 'aa@gmail.com',
                              'QueryProductClass' => 'QueryProductClass',
                              'ChannelCode'       => 12,
                              'CampaignCode'      => 234,
                              'Lob'               => 'Lob',
                              'PackageName'       => 'SEONI',
                              'PackageCode'       => 'SMP',
                              'TravelYear'        => 2012,
                              'TravelMonth'       => 06,
                              'TravelDay'         => 29,
                              'CityOfResidence'   => 'Jabalpur',
                              'ncidentNotes'      => 'testing ignor this',
                              'MobilePhone'       => '1234567890',
                              'DepartureCity'     => 'bangalore',
                              'NoOfDaysTravel'    => '3 Days',
                              'VendorName'        => 'TEST HIQ'
                          )
                      );
                  }
                  catch (Exception $e) {
                      echo "<h2>Exception Error!</h2>";
                      echo $e->getMessage();
                  }
                  ?>
                  

                  请告诉我哪里出错了我是 WSDL 和肥皂的新手

                  Please tell me where i am making mistake i am new in WSDL and soap

                  推荐答案

                  我通过启用 php_openssl 扩展在我的 WAMP 设置中解决了这个问题,因为我从使用的 https 加载的 URL://.

                  I solved this on my WAMP setup by enabling the php_openssl extension, since the URL I was loading from used https://.

                  这篇关于SOAP 错误:解析 WSDL:无法从 &lt;URL&gt; 加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:致命错误:找不到“SoapClient"类 下一篇:带有基本身份验证的 WSDL 到 PHP

                  相关文章

                  最新文章

                  <legend id='yIL0W'><style id='yIL0W'><dir id='yIL0W'><q id='yIL0W'></q></dir></style></legend>

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