path; $xml = $config->xml; $user = $config->username; $pass = $config->password; $auth = new authentication(); $auth->username = "$user"; $auth->password = "$pass"; $server = $config->server; $xml = file_get_contents($xml); $serv = new AssetOperationHandlerService(); $asset = new asset(); $block = new xmlBlock(); $asset->xmlBlock = $block; $block->path = "$path"; $block->parentFolderPath = dirname($path); $block->xml = $xml; $block->name = basename($path); //print_r($block); //print_r($config); $serv->edit($auth, $asset); if ($serv->success != "true") { $serv->create($auth, $asset); } ?>