Remoting framework & ISPConfig2

Discussion in 'Installation/Configuration' started by kassyo, Oct 20, 2010.

  1. kassyo

    kassyo New Member

    Hi there, im spanish so expect some text faults :p

    Im desesperated, i have been 2 days trying to run the remoting framework test.php and i have no results. Googled a lot, searched this forum, followed dieferent solutions and didnt found it.

    I followed the Perfect server setup for the last openSuse 64bits with ISPConfig 2.

    I have the Curl module running, tested.

    ...and simply when run test.php, the "script end...". No error, absolutely nothing.

    I used the last remoting framework in the ispconfig web.

    Can anyone give me any suggestion to make it work?

    PD: remote user, pass, ips, are fine.
  2. falko

    falko Super Moderator ISPConfig Developer

    What's your ISPConfig version?
  3. kassyo

    kassyo New Member

    ISPConfig version: 2.2.37
    Remoting Framework version: beta 4.2.1

    I have to correct that i dont hace Curl enabled in the ISPConfig php setup, i was doing test by the terminal.

    Do should i remove and reinstall ISPConfig with Curl? I supposed i was necesary only to access by SSL and thats not my case.

  4. kassyo

    kassyo New Member

    After a SIPConfig reinstall i decided to debug all code i can from a simple remoting framework request. Here is the code i execute (from command line by: php5 -f test.php).


    // Insert here your 42go Server
    $server_url "http://localhost:81";

    // creating object for soap_client
    $soap_client = new soap_client($server_url.'/remote/index.php',false);

    // Username and Password of the remoting user (not identical
    // with the user to log into the web interface!)

    $parameters = array('user' => 'admin',
    'pass' =>  'admin');

    // Login into 42go Server
    $session_id $soap_client->call('login',$parameters);

    //print_r ($soap_client);

    // Error Check
    if($err $soap_client->getError()) 
    "Error: ".$err);
    print_r ($soap_client);

    // User List
    $params = array (         'sid'        => $session_id,
    'module'         => 'web',
    'function'         => 'user_list',
    'params'        => array ( 'web_title' => '' // web_title or web_id

    $users $soap_client->call('service',$params);
    $err $soap_client->getError()) die("Error: ".$err);
    And this is the error i found inspecting the soap_client object created:

    soap_clientgot responselength206
    Entering parseResponse(), about to create soap_parser instance
    soap_parserEntering soap_parser()
    soap_parserparse errorXML error on line 2Invalid document end
    b>Catchable fatal error</b>:  Object of class soap_fault could not be converted to string in <b>/home/admispconfig/ispconfig/lib/classes/ispconfig_soap.obj.php</bon line <b>2000</b><br />
    XML and SOAP modules appears to be loaded, "php5 -m" confirms this.

    Any idea?

    I gonna try another ispconfig 2 version.
  5. jnsc

    jnsc rotaredoM Moderator

  6. kassyo

    kassyo New Member

    IT WORKS!!!

    Im still with the ISPConfig version: 2.2.37. I only have some warnings about soap module in example, its getting systems default timezone and im near sure its fixed by setting default timezone in .htaccess or vhost conf. I not tried yet.


Share This Page