DomainWebFwdCreate

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Creates a web forwarding

StructOperationResponse domainWebFwdCreate(string idSession, string fqdn, string target, string type, StructOptionsFwd options)  


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn Hostname fully qualified domain name
string (255) target Target of the web forwarding
string type Type of the web forwarding DIRECT / IP / MASKED / PARKING
StructOptionsFwd options Settings of the web forwarding

List of types of web forwarding and acceptable target values

Type Description Target value
DIRECT Direct forwarding A fully qualified domain name
MASKED Masked forwarding A fully qualified domain name
IP IP forwarding An IPv4 Address
PARKING Parking page Not used


Return

A structure StructOperationResponse


Notes

None


Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
$structOptionsFwd = array();
$structOptionsFwd["header"] = 301;
$structOptionsFwd["protocol"] = "ftp";
$structOptionsFwd["title"] = "";
$structOptionsFwd["parking"] = "";
 
try
{
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");            
      $StructOperationResponse = $clientSOAP->domainWebFwdCreate($idSession, "subdomain.netim.com", "netim.com", "DIRECT", $structOptionsFwd);
 
      print_r($StructOperationResponse);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->sessionClose($idSession);
}
?>


Release Runtime
API > 1.0 Synchronous


Description

Creates a web forwarding

int domainWebFwdCreate(string idSession, string fqdn, string target, string type, StructOptionsFwd options)  


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn Hostname fully qualified domain name
string (255) target target of the web forwarding
string type type of the web forwarding DIRECT / IP / MASKED / PARKING
StructOptionsFwd options Settings of the web forwarding

List of types of web forwarding and acceptable target values

Type Description Target value
DIRECT Direct forwarding A fully qualified domain name
MASKED Masked forwarding A fully qualified domain name
IP IP forwarding An IPv4 Address
PARKING Page de parking Not used


Return

A tracking ID


Notes

None


Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
$structOptionsFwd = array();
$structOptionsFwd["header"] = 301;
$structOptionsFwd["protocol"] = "ftp";
$structOptionsFwd["title"] = "";
$structOptionsFwd["parking"] = "";
 
try
{
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");            
      $trackingID = $clientSOAP->domainWebFwdCreate($idSession, "subdomain.netim.com", "netim.com", "DIRECT", $structOptionsFwd);
 
      echo($trackingID);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->logout($idSession);
}
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
int trackingID;
StructOptionsFwd structOptionsFwd = new StructOptionsFwd();
structOptionsFwd.setHeader(301);
structOptionsFwd.setProtocol("ftp");
structOptionsFwd.setTitle("");
structOptionsFwd.setParking("");
 
try
{
      DRSPortType port = service.getDRSPort();
      idSession = port.login("XXXX", "XXXX", "EN");
 
      trackingID = port.domainWebFwdCreate(idSession, "subdomain.netim.com", "netim.com", "DIRECT", structOptionsFwd);
      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