We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Call nusoap service

Hi, I call nusoap service but got this error: "no transport found, or selected transport is not yet supported!" Here is my code:

    $client = new \MikiID\Libs\nusoap_client('https://localhost/server/miki_service1625/index.php?wsdl', true);
    $client->soap_defencoding = 'UTF-8';
    $client->decode_utf8 = FALSE;
    $err = $client->getError();
    if ($err) {
            echo '-9999 abc';
    $key = 'my_key';
    $account_name = 'admin';
    $password = 'admin';
    $ip = NULL;
    $comment = NULL;
    $reference_id = NULL;
    $md5 = \md5($account_name . $password . $key . $ip . $comment. $reference_id);
    $result = $client->call('CreateAccount', array('account_name' => $account_name
                                                  ,'password' => $password
                                                  ,'ip' => $ip
                                                  ,'comment' => $comment
                                                  ,'reference_id' => $reference_id
                                                  ,'sign' => $md5));
    if ($client->fault) {
            echo '-9999h';
    } else {
            $err = $client->getError();
            echo $err;
            if ($err) {
                    echo '-9999';
            } else {
                    echo $result;

Somebody help me, please!

edited Oct '14

Hi @cuunguyen

Your error is not related with phalcon but with nusoap itself. Getting this error means that the call to the service works, because the error is thrown by the service.

Here is someone that got the same error as you do, I think it mays solve your problem : https://stackoverflow.com/questions/12650353/php-webservices-development

Maybe can you try to replace "localhost" with "" ?

edited Oct '14

Also when you call the method $client->call("CreateAccount"... you use a null ip. Maybe is it the problem ?