Went here: Main >> Software >> Module Installers >> PHP Extensions and Applications Package >> Manage Installed SOAP. It said, that it's installed.

Here's the log:

Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2" downloading SOAP-0.12.0.tgz ... Starting to download SOAP-0.12.0.tgz (71,233 bytes) .................done: 71,233 bytes install ok: channel://pear.php.net/SOAP-0.12.0

It appeared in the WHM in the list of installed extensions.

Rebooted (even rebooted) and then tried to exec this simple PHP code (the php file has chmod 777):

<?php 

$client = new SoapClient(NULL, 
        array( 
        "location" => "http://66.28.98.121:9090/soap", 
        "uri"      => "urn:xmethods-delayed-quotes", 
        "style"    => SOAP_RPC, 
        "use"      => SOAP_ENCODED 
           )); 

print($client->__call( 
        /* Имя SOAP-метода */ 
        "getQuote", 
        /* Параметры */ 
        array( 
            new SoapParam( 
                /* Значение параметра */ 
                "ibm", 
                /* Имя параметра */ 
                "symbol" 
        )), 
        /* Опции */ 
        array( 
            /* Пространство имен SOAP-метода */ 
            "uri" => "urn:xmethods-delayed-quotes", 
            /* HTTP-заголовок SOAPAction  для SOAP-метода */ 
            "soapaction" => "urn:xmethods-delayed-quotes#getQuote" 
        )). "\n"); 
?> 

The answer is:

Fatal error: Class 'SoapClient' not found in /home/white/public_html/shadowbox_forms/testsoap.php on line 3

How to make this damned SOAP work? Also tried to install it manually: Trying to install php-soap and getting the 'No package php-soap available.' No luck...

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.