<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fatal error: Uncaught Error: Class 'SoapClient' not found in Management</title>
    <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956569#M3232</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Most likely you have caught this error because, you might have not enabled Soap Client in php.ini file.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SoapClient is an extension of PHP that must be enabled in your php.ini file in order to be extended,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the following to enable soap:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Locate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;php.ini&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;apache&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bin folder, I.e&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Apache/bin/php.ini&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Remove the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the beginning of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;extension=php_soap.dll&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Restart your Apache server&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;HTH!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Anusha B R&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 09:48:51 GMT</pubDate>
    <dc:creator>Anusha B R</dc:creator>
    <dc:date>2019-11-11T09:48:51Z</dc:date>
    <item>
      <title>Fatal error: Uncaught Error: Class 'SoapClient' not found</title>
      <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3955975#M3229</link>
      <description>&lt;P&gt;hello community,&lt;/P&gt;&lt;P&gt;I farly new to APIs and&amp;nbsp;Soap. I am trying to get my first script going but i cannot find what wrong am I doing.&lt;/P&gt;&lt;P&gt;my web browser keeps throwing this error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;: Uncaught Error: Class 'SoapClient' not found in C:\xampp\htdocs\FAC.php:24 Stack trace: #0 {main} thrown in&amp;nbsp;&lt;STRONG&gt;C:\xampp\htdocs\FAC.php&lt;/STRONG&gt;&amp;nbsp;on line&amp;nbsp;&lt;STRONG&gt;24&lt;/STRONG&gt;&amp;nbsp;.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;here's my script:-&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;echo "&amp;lt;h1&amp;gt;Fac Info Test&amp;lt;/h1&amp;gt;";&lt;/P&gt;&lt;P&gt;$host="callmanager pub ip address";&lt;BR /&gt;$username="admin username";&lt;BR /&gt;$password="admin password";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//disable cert check&lt;BR /&gt;//$context = stream_context_create(array('ssl'=&amp;gt;array('verify_peer_name'=&amp;gt;false,'allow_self_signed'=&amp;gt;true)));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// cert check with cert full pathinfo&lt;BR /&gt;//$context = stream_context_create(array('ssl'=&amp;gt;array('verify_peer_name'=&amp;gt;true,'allow_self_signed'=&amp;gt;true,'cafile'=&amp;gt;"/var/www/html/PHP-Sample/DS-UCM105.cisco.com.pem")));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$client = new SoapClient("C:\xampp\htdocs\AXLAPI.wsdl",&lt;/P&gt;&lt;P&gt;array('trace'=&amp;gt;true,&lt;BR /&gt;'exceptions'=&amp;gt;true,&lt;BR /&gt;'location'=&amp;gt;"https://".$host.":8443/axl",&lt;BR /&gt;'login'=&amp;gt;$username,&lt;BR /&gt;'password'=&amp;gt;$password,&lt;BR /&gt;));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;function getFacInfo($client, $name) {&lt;BR /&gt;$returnedTags = array("name"=&amp;gt;"","code"=&amp;gt;"","authorizationLevel"=&amp;gt;"");&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;$response = $client-&amp;gt;getFacInfo(array("name"=&amp;gt;$name),array("returnedTags"=&amp;gt;$returnedTags));&lt;BR /&gt;}&lt;BR /&gt;catch (SoapFault $sf) {&lt;BR /&gt;echo "SoapFault: " . $sf . "&amp;lt;BR&amp;gt;";&lt;BR /&gt;}&lt;BR /&gt;catch (Exception $e) {&lt;BR /&gt;echo "Exception: " . $e . "&amp;lt;BR&amp;gt;";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;echo("Uuid: ".$response-&amp;gt;return-&amp;gt;facInfo-&amp;gt;uuid."&amp;lt;br&amp;gt;");&lt;BR /&gt;echo("Name: ".$response-&amp;gt;return-&amp;gt;facInfo-&amp;gt;name."&amp;lt;br&amp;gt;");&lt;BR /&gt;echo("Code: ".$response-&amp;gt;return-&amp;gt;facInfo-&amp;gt;code."&amp;lt;br&amp;gt;");&lt;BR /&gt;echo("Auth Level: ".$response-&amp;gt;return-&amp;gt;facInfo-&amp;gt;authorizationLevel."&amp;lt;br&amp;gt;");&lt;BR /&gt;echo("&amp;lt;hr&amp;gt;");&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 00:50:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3955975#M3229</guid>
      <dc:creator>alsaafani</dc:creator>
      <dc:date>2019-11-09T00:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Uncaught Error: Class 'SoapClient' not found</title>
      <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956563#M3230</link>
      <description>&lt;P&gt;As far as i see you have an error in SOAP Client.&lt;/P&gt;&lt;P&gt;This might be because this is not active in your php.ini&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phpinfo.jpg" style="width: 812px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/49170i8A3B840B415F715D/image-size/large?v=v2&amp;amp;px=999" role="button" title="phpinfo.jpg" alt="phpinfo.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Locate php.ini in your &lt;STRONG&gt;xampp&lt;/STRONG&gt; folder&lt;/LI&gt;&lt;LI&gt;Remove the ; from the beginning of extension=php_soap.dll&lt;/LI&gt;&lt;LI&gt;Restart your web server&lt;/LI&gt;&lt;LI&gt;Look up your phpinfo(); again and check if you see a similar picture to the one above&lt;/LI&gt;&lt;LI&gt;If you do, problem solved!&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:36:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956563#M3230</guid>
      <dc:creator>thedd</dc:creator>
      <dc:date>2019-11-11T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Uncaught Error: Class 'SoapClient' not found</title>
      <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956569#M3232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Most likely you have caught this error because, you might have not enabled Soap Client in php.ini file.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SoapClient is an extension of PHP that must be enabled in your php.ini file in order to be extended,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the following to enable soap:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Locate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;php.ini&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;apache&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bin folder, I.e&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Apache/bin/php.ini&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Remove the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the beginning of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;extension=php_soap.dll&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Restart your Apache server&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;HTH!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Anusha B R&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:48:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956569#M3232</guid>
      <dc:creator>Anusha B R</dc:creator>
      <dc:date>2019-11-11T09:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Uncaught Error: Class 'SoapClient' not found</title>
      <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956602#M3235</link>
      <description>thanks thedd, it seems to be working but still I am facing an other issue not sure if it is related to this original post.&lt;BR /&gt;Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'C: mpp\htdocs\AXLAPI.wsdl' : failed to load external entity "C: mpp/htdocs/AXLAPI.wsdl" in C:\xampp\htdocs\FAC.php:39 Stack trace: #0 C:\xampp\htdocs\FAC.php(39): SoapClient-&amp;gt;SoapClient('C:\nmpp\\htdocs\\A...', Array) #1 {main} thrown in C:\xampp\htdocs\FAC.php on line 39</description>
      <pubDate>Mon, 11 Nov 2019 11:22:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956602#M3235</guid>
      <dc:creator>alsaafani</dc:creator>
      <dc:date>2019-11-11T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Uncaught Error: Class 'SoapClient' not found</title>
      <link>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956642#M3236</link>
      <description>&lt;P&gt;The Error "Couldn't load from 'C: mpp\htdocs\AXLAPI.wsdl' "&lt;/P&gt;&lt;P&gt;seems to be because you reffer to C: mpp not C:\xmpp or it is a copy mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest you put your wsdl &lt;STRONG&gt;and&lt;/STRONG&gt; php file in one folder.&lt;/P&gt;&lt;P&gt;The you can reffer to /AXLAPI.wsdl or create a subdirectory maybe AXL the reffer to /AXL/AXLAPI.wsdl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:13:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/fatal-error-uncaught-error-class-soapclient-not-found/m-p/3956642#M3236</guid>
      <dc:creator>thedd</dc:creator>
      <dc:date>2019-11-11T13:13:57Z</dc:date>
    </item>
  </channel>
</rss>

