Docly Child

Set package

					StructOperationResponse WebHostingUpdate(string $IDsession, string $id, string $action, array $params)

Upgrade the hosting to a new package offer.


  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetPackage”.
  • params array
    {“offer”: new hosting product ID (See Web hosting products)}.

An Object of type StructOperationResponse

$clientSOAP = new SoapClient("http://URL.wsdl");
    $params = array("offer" =>"SHWEB");
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingUpdate($idSession, "NW1024", "SetPackage", $params)); 
catch(SoapFault $fault) 
    echo "Exception : " .$fault->getMessage(). "\n"; 
if (isset($idSession))