Create domain web forward

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

Create a web forward.

REQUIRED


  • idSession string (32)
    Session ID.
  • fqdn string (255)
    Hostname (Fully qualified domain name).
  • target string (255)
    Target of the web forward.
  • type string
    Type of the web forward (DIRECT / IP / MASKED / PARKING).
  • options object (StructOptionsFwd)
    Settings of the web forward.

An Object of type StructOperationResponse

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
$structOptionsFwd = array();
$structOptionsFwd["header"] = 301;
$structOptionsFwd["protocol"] = "ftp";
$structOptionsFwd["title"] = "";
$structOptionsFwd["parking"] = "";
 
try
{
      $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx");            
      $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);
}
?>