Note that there are some explanatory texts on larger screens.

plurals
  1. PO(Zend) Soap Server doesn't return results
    primarykey
    data
    text
    <p>I've been trying to setup a Soap Server using Zend_Soap_Server, but I can't seem to make it work.<br> I have tried several different environments: nginx and apache on a linux vm, apache on windows, php 5.3 and php 5.4, all yield the same results.</p> <p>Using Zend_Soap_Autodiscover it correctly generates a wsdl. When I feed that wsdl to SoapClient and invoke a method on it, it doesn't return a response. It seems like php halts after SoapServer::handle() is called.</p> <p>This is the server part:</p> <pre><code>ini_set('soap.enable_wsdl_cache', 0); require_once 'Zend/Soap/AutoDiscover.php'; require_once 'Zend/Soap/Server.php'; if (isset($_GET['wsdl'])) { handleWsdl(); } else { handleSoap(); } function handleWsdl() { $autodiscover = new Zend_Soap_AutoDiscover(); $autodiscover-&gt;addFunction('pi'); $autodiscover-&gt;handle(); } function handleSoap() { $soap = new Zend_Soap_Server('http://localhost/experiments/soap/server.php?wsdl'); $soap-&gt;setWsdlCache(false); $soap-&gt;addFunction('pi'); $soap-&gt;handle(); } </code></pre> <p>And this is the client:</p> <pre><code>ini_set('soap.enable_wsdl_cache', 0); $wsdl = 'http://localhost/experiments/soap/server.php?wsdl'; $client = new SoapClient($wsdl, array('trace' =&gt; 1)); $result = $client-&gt;pi(); var_dump($result); </code></pre> <p>The <code>$result</code> is <code>NULL</code>.</p> <p>I'm running out of ideas and hope someone can help me solve this mystery.</p> <p>BTW: I have also tried SoapUI to consume the webservice, but the results are the same.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload