We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

SoapServer response null in Phalcon

when i run url https://localhost/NewApp/sms/test?wsdl to show xml in file wsdl , return null. Then I write file test.php in folder public and run https://localhost/test.php?wsdl . it return xml in file smssoap.wsdl This is my code :

public function testAction()

    ini_set("soap.wsdl_cache_enabled", "0");
    $soapServer = new \SoapServer('smssoap.wsdl', ["soap _version" => SOAP_1_2]);

file test.php

class SmsSoapController{
        public function executeReceiveMO(){
            ini_set('display_errors', 1);
            ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
            $soap_server = new SoapServer('smssoap.wsdl',array('soap_version' => SOAP_1_2));
$soap = new SmsSoapController();


yes, i have the same problem