An abstract method that Executes the command
validateOptions();
try
{
MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
getUser(), getPassword());
//DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
//final Set s = domainRoot.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);
String webServiceName = getOption(WEB_SERVICE_OPTION);
validateWebServiceName(webServiceName, true);
WebServiceEndpointConfig wsc =
getWebServiceEndpointConfig(mbsc, webServiceName, false);
if (wsc == null)
throw new CommandException(getLocalizedString("CannotFindWebservice"));
String ruleName = (String) getOperands().get(0);
wsc.removeTransformationRuleConfig(ruleName);
CLILogger.getInstance().printDetailMessage(getLocalizedString(
"CommandSuccessful",
new Object[] {name}));
}
catch(Exception e)
{
displayExceptionMessage(e);
}