Register Domains

Sample XMLINPUT
Shown below is the xml that will be sent to register mydomain.com.ph for 2 years.

<?xml version="1.0"?> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Header>
<T:Tran xmlns:T="http://dotph.com">
<T:ID></T:ID>

SOAP:Header
T:UserID - registrar userid
T:Password - registrar password
* This is the same userid and password used to login to registrar tools.

T:Source - For tracking purposes. This can be used to identify the site that sent the request.


<T:UserID>testpartner</T:UserID>
<T:Password>testpartner</T:Password>
<T:Source>SRS</T:Source>
</T:Tran>
</SOAP:Header>
<SOAP:Body>
<Job>
<details>
<![CDATA[

<Domain name="mydomain.com.ph">

PaymentInfo
PayType - CASH (postpaid), CREDIT (prepaid credits), CREDITCARD
cc="enduser" - The credit card will be charged the registrar selling price.
cc<>"enduser" - The credit card will be charged the registrar buying price.

If PayType = "CREDITCARD", supply the following information
CardType
CardNo
CardExpire
NameOnCard
CVV2 - (Optional) a three-digit security code that is printed on the back of cards

<PaymentInfo>
<PayType cc="enduser">CASH</PayType>
<CardType></CardType>
<CardNo></CardNo>
<CardExpire></CardExpire>
<NameOnCard></NameOnCard>
<CVV2></CVV2>
</PaymentInfo>

Set type attribute of JD to RegisterDomain. Specify duration and servicetype.

<JD type="RegisterDomain" duration="2" ServiceType="RESERVE">

Domain Owner/Administrator Information
Organization - [char(80), required]
LastName - [char(40), required]
FirstName - [char(40)]

Phone - [char(20), required]
Fax - [char(20)]
AddressLine1 -[char(80), required]
AddressLine2 - [char(80)]
City -[char(80),required]
State -[char(40), required]
PostalCode - [char(10)]
CountryCode -[char(2),required]

PrimaryEmail - [char(80),required] - administrator email address
SecondaryEmail - [char(80)] - alternate email address

<Organization>domains</Organization>
<Admin>
<LastName>reynante de jesus</LastName>
<FirstName>rey</FirstName>
<Phone>6312909</Phone>
<Fax></Fax>
<AddressLine1>strata 100 bldg. emerald avenue ortigas, pasig city</AddressLine1>
<AddressLine2></AddressLine2>
<City>qc</City>
<State>ncr</State>
<PostalCode></PostalCode>
<CountryCode>PH</CountryCode>
<PrimaryEmail>reynan@email.com.ph</PrimaryEmail>
<SecondaryEmail></SecondaryEmail>
</Admin>

Optional Webforwarding
Valid only for domains using dotph nameservers.


<WebForwarding>
<ForwardURL></ForwardURL>
<Title></Title>
<Keywords></Keywords>
<Description></Description>
</WebForwarding>




A list of Name servers that the domain is delegated to. The attributes name and ip are required for NS1 and NS2. The name attribute requires a valid hostname. The ip attribute requires a valid ip address.



<NameServers>
<NS1 name="nsfwd.domains.ph" ip="203.167.64.32"/>
<NS2 name="ns2.domains.ph" ip="203.167.64.35"/>
<NS3 name="" ip=""/>
</NameServers>
</JD>
</Domain>
]]>
</details>
</Job>
</SOAP:Body>
</SOAP:Envelope>

To register multiple domains, create multiple domain blocks as shown below:

<?xml version="1.0"?> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Header>
<T:Tran xmlns:T="http://dotph.com">
<T:ID></T:ID>
<T:UserID>testpartner</T:UserID>
<T:Password>testpartner</T:Password>
<T:Type>Execute</T:Type>
</T:Tran>
</SOAP:Header>
<SOAP:Body>
<Job>
<details>
<![CDATA[
<Domain name="mydomain.com.ph">
<PaymentInfo>
<PayType>CASH</PayType>
<CardType></CardType>
<CardNo></CardNo>
<CardExpire></CardExpire>
<NameOnCard></NameOnCard>
</PaymentInfo>
<JD type="RegisterDomain" duration="2" ServiceType="RESERVE">
...
</JD>
</Domain>

<Domain name="mydomain2.com.ph">
<JD type="RegisterDomain" duration="2" ServiceType="RESERVE">
...
</JD>
</Domain>

<Domain name="mydomain3.com.ph">
<JD type="RegisterDomain" duration="2" ServiceType="RESERVE">
...
</JD>
</Domain>

]]>

</details>
</Job>
</SOAP:Body>
</SOAP:Envelope>


August 19, 2003


[ Back ]