Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart SoapClient Class Not Found Issue

 
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-04-2015, 09:37 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default X-Cart SoapClient Class Not Found Issue

I am try to connect to soapclient using the following line:

$client = new SoapClient($swipezoom_config['url'], array("trace" => 0, "exceptions" => 0, "cache_wsdl" => 0));

I am getting the following error:

[05-Aug-2015 08:28:52 Europe/Berlin] PHP Fatal error: Class 'XLite\Module\Swipezoom\InternationalShipping\View \Checkout\SoapClient' not found in D:\xampp\htdocs\xcart\var\run\classes\XLite\Module \Swipezoom\InternationalShipping\View\Checkout\Shi ppingAddress.php on line 79

[05-Aug-2015 08:28:52] Error (code: 1): Class 'XLite\Module\Swipezoom\InternationalShipping\View \Checkout\SoapClient' not found
Server API: apache2handler;
Request method: GET;
URI: /xcart/?target=checkout&action=update_profile&email=&same _address=1;
Backtrace:
#0 Includes\ErrorHandler::logInfo() called at [D:\xampp\htdocs\xcart\Includes\ErrorHandler.php:33 2]
#1 Includes\ErrorHandler::handleError() called at [D:\xampp\htdocs\xcart\Includes\ErrorHandler.php:31 7]
#2 Includes\ErrorHandler::shutdown()


Please let me know how to get the SoapClient working? We can see in the error that due to namespace its treating the SoapClient class to exists on the same folder, but thats not the case. So how to resolve this considering SoapClient is enabled in my localhost, I have already checked it.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
  #2  
Old 08-04-2015, 09:51 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default Re: X-Cart SoapClient Class Not Found Issue

I found the solution. I needed to remove namespace when calling new SoapClient. So I made the following change:

$client = new \SoapClient($swipezoom_config['url'], array("trace" => 0, "exceptions" => 0, "cache_wsdl" => 0));
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:15 AM.

   

 
X-Cart forums © 2001-2020