virtual int processCMD() { Owned<IClientWsPackageProcess> packageProcessClient = getWsPackageSoapService(optServer, optPort, optUsername, optPassword); Owned<IClientActivatePackageRequest> request = packageProcessClient->createActivatePackageRequest(); request->setPackageName(optQuerySetName); request->setPackageMapName(optPackageMap); Owned<IClientActivatePackageResponse> resp = packageProcessClient->ActivatePackage(request); if (resp->getExceptions().ordinality()) outputMultiExceptions(resp->getExceptions()); return 0; }
virtual int processCMD() { Owned<IClientWsPackageProcess> packageProcessClient = createCmdClient(WsPackageProcess, *this); Owned<IClientActivatePackageRequest> request = packageProcessClient->createActivatePackageRequest(); request->setTarget(optTarget); request->setPackageMap(optPackageMap); request->setProcess(optProcess); Owned<IClientActivatePackageResponse> resp = packageProcessClient->ActivatePackage(request); if (resp->getExceptions().ordinality()) outputMultiExceptions(resp->getExceptions()); return 0; }