1)); $allData = file_get_contents($data); $edit_params = array ( 'authentication' => array( 'password' => $pass, 'username' => $name ), 'asset' => array( 'xmlBlock' => array( 'name' => basename($backup), 'parentFolderPath' => dirname($backup), 'path' => $backup, 'metadataSetPath' => "/Default", 'xml' => $allData ))); // print_r($edit_params); try { $client->edit($edit_params); if (substr_count($client->__getLastResponse(), "false") > 0) { $edit_params['asset']['xmlBlock']['path'] = ""; $client->create($edit_params); // print($client->__getLastResponse()); } } catch (Exception $e) { print("Page creation request failed to conform to the WSDL.\n"); print($client->__getLastResponse()); } ?>