csckid Posted January 4, 2011 Share Posted January 4, 2011 I was accessing a wsdl file, using php, using normal php SoapClient code. $soap=new SoapClient(WSDL_FILE_LOCATION); The code ran properly in localhost. But, when I uploaded the files in my free server 000webhost.com. I get the following error Fatal error: Class 'SoapClient' not found in /home/****/public_html/myfile.php on line 12 The error points to SoapClient(WSDL_FILE_LOCATION); line I couldn't understand the problem. Can someone please help me out? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/223372-wsdl/ Share on other sites More sharing options...
Kieran Menor Posted January 4, 2011 Share Posted January 4, 2011 You need to have the SOAP PHP extension loaded to be able to use that class. Link to comment https://forums.phpfreaks.com/topic/223372-wsdl/#findComment-1154663 Share on other sites More sharing options...
csckid Posted January 4, 2011 Author Share Posted January 4, 2011 do you mean I need to have php_soap.dll in php/ext folder? I'm totally new to this. or do I need soap.php file? I tried from another free php hosting site. It returned the same fatal error. Link to comment https://forums.phpfreaks.com/topic/223372-wsdl/#findComment-1154679 Share on other sites More sharing options...
Kieran Menor Posted January 4, 2011 Share Posted January 4, 2011 You also have to uncomment it in php.ini. I recommend making a file containing <?php phpinfo(); ?> to get a better idea of the loaded modules. Link to comment https://forums.phpfreaks.com/topic/223372-wsdl/#findComment-1154682 Share on other sites More sharing options...
csckid Posted January 4, 2011 Author Share Posted January 4, 2011 phpinfo() didn't show any soap module. I guess this is not enabled. The site will not allow me to edit php.ini file. instead of relying on SoapClient can I use nusoap.php? Will it work even if soap module is not installed in webhost.com Link to comment https://forums.phpfreaks.com/topic/223372-wsdl/#findComment-1154723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.