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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.