small issue with API Hsphere

Discussion in 'Troubleshooting' started by AlexeyShalin, May 7, 2014.

  1. AlexeyShalin

    AlexeyShalin Bit Poster

    Messages:
    1
    hello
    I was able to create third level domain via API
    here is my code


    <?

    function connect_dnsservice() {
    global $client_dnsserv;
    global $sphere_at;

    //try{
    $client_dnsserv=new SoapClient("http://cp.hoster.kg:8080/psoft/servlet/services/DomainServices?wsdl",array("trace"=>1,"exception"=>1));
    // } catch (SoapFault $exception) {

    // }
    return $client_dnsserv;
    }


    function add_domain()
    {
    connect_dnsservice();
    $client_dnsserv->add3rdLevelDomain($sphere_at,"murizzzzka.on.kg");
    $client_dnsserv->deleteMailService($sphere_at,"murizzzzka.on.kg");
    $client_dnsserv->deleteHosting($sphere_at,"murizzzzka.on.kg",true);
    }

    ?>
    Domain murizzzzka.on.kg was added without any issues

    Right now - I would like to remove Default A Records and Custom A Records

    I did not find any function how to remove Default A Records - can you tell me how to do this ?

    and second
    I was not able to add Custom A Record
    PHP Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] Validation failed: Prefix : alphanumeric value (parameter [*]) in /root/hsphere/function.php:61
    Stack trace:
    #0 /root/hsphere/function.php(61): SoapClient->__call('addUserCustomAR...', Array)
    #1 /root/hsphere/function.php(61): SoapClient->addUserCustomARecord(Array, 'murizzzzka.on.k...', '*', '86400', '111.111.111.111')
    #3 {main}
    thrown in /root/hsphere/function.php on line 61

    But from Hsphere Panel i'm able to use * when adding new A record

    Can you please help me with creating and deleting ?
     
  2. FedorK

    FedorK Mega Poster

    Messages:
    224
    Hello Alexey,

    This forum section related only PBAS product and we can answer only on this questions.
    For resolve your issue I recommend you contact Parallels support.
     

Share This Page