Developer Area

SOAP (#17) - Cannot access empty property (#217) - Message List

Cannot access empty property

Hi, I'm new to SOAP and was trying the scripts sample_client.php on http://dev.telnic.org/trac/browser/apps/php/trunk

I downloaded my client.wsdl and made the changes as suggested, but I always get the message

Fatal error: Cannot access empty property in /**********/Telhosting_Client.php on line 78

Probably it's something basic but I can't find the problem.

Thank you in advance.

  • Message #639

    Line 78 is where the Client code is looking for the WSDL file. It looks like you haven't properly initialized the configuration prior to calling new() in Telhosting_Client. Here's how you initialize:

    $config = array();
    $config['login'] = 'xxxxxxxxxxx';
    $config['password'] = 'xxxxxxxxxxx';
    $config['wsdl'] = './client.wsdl';
    $domain = 'mydomain.tel';
    // Initialize our client
    $client = new Telhosting_client($config);
    

    Make sure the $configwsdl? points to your correct wsdl file.

Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us