API web_update

Discussion in 'General' started by mccharlet, Apr 10, 2007.

  1. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi,

    I test the api script with Remoting Framework, but I can't make of update for a website


    The remote user are all right to the website and user (create,change,remove and add)

    This is the parameters website

    Array ( [domaine.tld] => Array ( [web_title] => domaine.tld [doc_id] => 38 [doctype_id] => 1013 [web_host] => www [web_domain] => domaine.tld [web_speicher] => 100 [web_traffic] => [web_cgi] => 1 [web_php] => 1 [web_ssi] => 0 [web_ftp] => 1 [web_frontpage] => 0 [web_mysql] => 1 [web_postgresql] => [web_shell] => 0 [web_shop] => [web_phpmyadmin] => [web_webmail] => [web_webalizer] => [web_ssl] => 0 [status] => n [ssl_request] => [ssl_cert] => [ssl_action] => [web_ip] => 80.248.218.189 [server_id] => 1 [optionen_mysql_user] => [optionen_mysql_passwort] => [web_dns] => 1 [web_userlimit] => 5 [web_domainlimit] => 1 [ssl_state] => [ssl_locality] => [ssl_organization] => [ssl_organization_unit] => [ssl_country] => [web_dns_mx] => [ssl_days] => [web_httpd_include] => [web_anonftp] => 0 [web_anonftplimit] => 0 [optionen_frontpage_passwort] => [optionen_mysql_remote_access] => [optionen_local_mailserver] => 1 [web_faktura] => 1 [optionen_logsize] => 30% [optionen_directory_index] => [web_php_safe_mode] => 0 [web_wap] => 0 [web_standard_cgi] => 0 [web_individual_error_pages] => 1 [error_401] => [error_404] => [error_403] => [error_500] => [error_400] => [error_405] => [error_503] => [web_mysql_anzahl_dbs] => [web_mailuser_login] => [web_traffic_ueberschreitung] => [web_traffic_status] => [webalizer_stats] => 1 [web_id] => 38 ) )

    This is my script

    <?php

    include("soap.lib.php");
    include("connect_isp.php");


    $params = array ( 'sid' => $session_id,
    'module' => 'web',
    'function' => 'web_update',
    'params' => array ( web_title => 'domaine.tld',
    web_host => 'www',
    web_domain => 'toto.ch'
    ));

    $web = $soapclient->call('service',$params);
    if($err = $soapclient->getError()) die("Error: ".$err);
    print_r($web);

    // 42go Server logout
    $soapclient->call('logout',array('sid' => $session_id));

    // Error Check
    if($err = $soapclient->getError()) die("Error: ".$err);

    echo "<br>Script end ...";
    ?>

    No error at return
     
    Last edited: Apr 10, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try to set all parameters?
     
  3. mccharlet

    mccharlet Member HowtoForge Supporter

    no change :confused:
     

Share This Page