I'm not too sure why it would respond with empty set. Perhaps there is 
no nameservers set for this domain?

Maybe someone from OpenSRS could shed a bit of light here?

mayo

Gerald Gr�nberger wrote:

>Hi Mayo,
>
>thanks for your advice, but it seems that that the Array is empty.
>
>I've included the result as raw XML reply:
>
><?xml version='1.0' encoding="UTF-8" standalone="no" ?>
><!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
><OPS_envelope>
>  <header>
>     <version>0.9</version>
>  </header>
>  <body>
>    <data_block>
>      <dt_assoc>
>         <item key="is_success">1</item>
>         <item key="protocol">XCP</item>
>         <item key="object">NAMESERVER</item>
>         <item key="attributes">
>          <dt_assoc>
>            <item key="nameserver_list">
>               <dt_array></dt_array>
>             </item>
>          </dt_assoc>
>        </item>
>        <item key="response_text">Query Successful</item>
>        <item key="response_code">200</item>
>        <item key="action">REPLY</item>
>       </dt_assoc>
>      </data_block>
>  </body>
></OPS_envelope>
>
>
>Don't know why....
>Do you have any further comments on this?
>
>Gerald
>
>-----Urspr�ngliche Nachricht-----
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im
>Auftrag von Mayo
>Gesendet: Dienstag, 04. Juni 2002 21:57
>Cc: [EMAIL PROTECTED]
>Betreff: Re: Change Nameserver
>
>
>Hi Gerald,
>
>Note the "[nameserver_list] => Array" in the response from the server.
>Your nameservers are in that array.
> From docs:
><snip>
>The response message will consist of the standard response fields (see
>section "Response
>Messages"), as well as the following fields in attributes:
>
>attributes:
>
>nameserver_list    array    List (array) of nameservers. Each nameserver
>is represented as hash, which contains data as described below
>("nameserver data").
>
>Nameserver Data: Each element of the nameserver_list array contains the
>following data,
>expressed as a hash (see example below):
>[leaving out all the blah around it, it gives you array with elements:
>name, ipaddress, can_delete, encoding type]
></snip>
>
>Seems like you are using the php class, try doing
>print_r($result['attributes']['nameserver_list']); (given $result is the
>repose from the server).
>
>hope this helps.
>
>mayo
>
>Gerald Gr�nberger wrote:
>
>  
>
>>Hi,
>>
>>hope somebody can help me. I can't change nameservers on a domain, nor can
>>    
>>
>I
>  
>
>>get a list of the nameservers from this
>>domain (TEST-SYSTEM)
>>In the manage-interface the nameservers are correct set.
>>
>>The cookie request produce a success message so the problem isn't the
>>password.
>>
>>The command I've used:
>>
>>Array ( [action] => get [object] => nameserver [cookie] => 815524100:316019
>>[attributes] => Array ( [name] => all ) )
>>
>>
>>Result:
>>
>>Array ( [_OPS_version] => 0.9 [is_success] => 1 [protocol] => XCP [object]
>>=> NAMESERVER [attributes] => Array ( [nameserver_list] => Array )
>>[response_text] => Query Successful [response_code] => 200 [action] =>
>>REPLY )
>>
>>
>>Kind regards,
>>
>>Gerald
>>-------------------------------
>>World4You Webservice
>>Technische Leitung
>>[EMAIL PROTECTED]
>>Tel.: +43 (0)7227 20665
>>Fax:  +43 (0)7227 20665 10
>>http://www.world4you.com
>>-------------------------------
>>
>>
>>
>>    
>>
>
>
>
>  
>


Reply via email to