String serviceFilePath, int deploymentDelay)
throws RemoteException, MalformedURLException, LoginAuthenticationExceptionException,
ExceptionException {
AARServiceUploaderClient adminServiceAARServiceUploader =
new AARServiceUploaderClient(backEndUrl, sessionCookie);
ServiceAdminClient adminServiceService = new ServiceAdminClient(backEndUrl, sessionCookie);
if (adminServiceService.isServiceExists(serviceName)) {
adminServiceService.deleteService(new String[]{serviceName});
isServiceUnDeployed(backEndUrl, sessionCookie, serviceName, deploymentDelay);
}
adminServiceAARServiceUploader.uploadAARFile(serviceName + ".aar", serviceFilePath, "");
Assert.assertTrue(isServiceDeployed(backEndUrl, sessionCookie, serviceName)
, serviceName + " deployment failed in Application Server");