HostingMailDomainAliasCreate

From NETIM
Jump to: navigation, search
Release Runtime
API >= 1.4 Asynchronous


Description

Adds a domain alias to the hosting

int hostingMailDomainAliasCreate(string idSession, string domaine, string alias)  


Perimeter

Applies to SPAMORA


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domaine Domain name receiving the alias domain name of the hosting
string (255) alias Domain name to be added as alias


Return

A tracking ID


Notes

None

Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try
{
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");
      $trackingID = $clientSOAP->hostingMailDomainAliasCreate($idSession, "example.com", "alias.com");
 
      echo $trackingID;
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->logout($idSession);
}
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
itn trackingID;
 
try
{
DRSPortType port = service.getDRSPort();
idSession = port.login("XXXX", "XXXX", "EN");
 
trackingID = port.hostingMailDomainAliasCreate(idSession, "example.com", "alias.com");
System.out.println(trackingID);
 
port.logout(idSession);
}
catch (RemoteException re)
{
      System.out.println(re.getMessage());
}
catch (ServiceException se)
{
      se.printStackTrace();
}
Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous