virtual int processCMD() { Owned<IClientWsPackageProcess> packageProcessClient = createCmdClient(WsPackageProcess, *this); Owned<IClientGetPackageRequest> request = packageProcessClient->createGetPackageRequest(); request->setTarget(optTarget); request->setProcess("*"); Owned<IClientGetPackageResponse> resp = packageProcessClient->GetPackage(request); if (resp->getExceptions().ordinality()) outputMultiExceptions(resp->getExceptions()); else printf("%s", resp->getInfo()); return 0; }
virtual int processCMD() { Owned<IClientWsPackageProcess> packageProcessClient = getWsPackageSoapService(optServer, optPort, optUsername, optPassword); Owned<IClientGetPackageRequest> request = packageProcessClient->createGetPackageRequest(); request->setPackageName(optPkgName); request->setCluster(optCluster); Owned<IClientGetPackageResponse> resp = packageProcessClient->GetPackage(request); if (resp->getExceptions().ordinality()) outputMultiExceptions(resp->getExceptions()); else printf("%s", resp->getInfo()); return 0; }