sw_register XML sample?

From: klaus rubba (klaus_rubba@hotmail.com)
Date: Wed Jan 23 2002 - 19:05:45 EST


I've got authentication and domain lookup working, but now i'm stuck on
domain registration. I found an old XML example of this function in the
archives, but it used the 'register' command, and mine matched it pretty
closely.

Can anybody send an XML doc of a successfull domain registration?

In case anyone is bored, here is my unsuccessfull attempt:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
  <header>
    <version>0.9</version>
    <msg_id>999</msg_id>
    <msg_type>standard</msg_type>
  </header>
  <body>
    <data_block>
     <dt_assoc>
       <item key="protocol">XCP</item>
       <item key="action">SW_REGISTER</item>
       <item key="object">DOMAIN</item>
       <item key="attributes">
        <dt_assoc>
          <item key="domain">www.cheesyshirts.com</item>
          <item key="reg_type">new</item>
          <item key="reg_username">frank</item>
          <item key="reg_password">paswd123</item>
          <item key="custom_nameservers">0</item>
          <item key="affiliate_id">54321</item>
          <item key="period">2</item>
          <item key="bulk_order">0</item>
          <item key="custom_tech_contact">0</item>
          <item key="link_domains">0</item>
          <item key="contact_set">
           <dt_assoc>
            <item key="billing">
             <dt_assoc>
              <item key="first_name">frank</item>
              <item key="last_name">sinatra</item>
              <item key="org_name">orchestra</item>
              <item key="address1">ny ny</item>
              <item key="city">ny</item>
              <item key="country">usa</item>
              <item key="Email">franky@hotmail.com</item>
              <item key="phone">800-555-1234</item>
             </dt_assoc>
            </item>
            <item key="admin">
             <dt_assoc>
              <item key="first_name">frank</item>
              <item key="last_name">sinatra</item>
              <item key="org_name">orchestra</item>
              <item key="address1">ny ny</item>
              <item key="city">ny</item>
              <item key="country">usa</item>
              <item key="Email">franky@hotmail.com</item>
              <item key="phone">800-555-1234</item>
             </dt_assoc>
            </item>
            <item key="owner">
             <dt_assoc>
              <item key="first_name">frank</item>
              <item key="last_name">sinatra</item>
              <item key="org_name">orchestra</item>
              <item key="address1">ny ny</item>
              <item key="city">ny</item>
              <item key="country">usa</item>
              <item key="Email">franky@hotmail.com</item>
              <item key="phone">800-555-1234</item>
             </dt_assoc>
            </item>
           </dt_assoc>
          </item>
          <item key="nameserver_list">
           <dt_array>
            <item key="0">
             <dt_assoc>
              <item key="name">ns1.domaindirect.com</item>
              <item key="sortorder">1</item>
             </dt_assoc>
            </item>
            <item key="1">
             <dt_assoc>
              <item key="name">ns2.domaindirect.com</item>
              <item key="sortorder">2</item>
             </dt_assoc>
            </item>
           </dt_array>
          </item>
         </dt_assoc>
        </item>
      </dt_assoc>
    </data_block>
  </body>
</OPS_envelope>

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:36:56 EDT