String.class, String.class, String.class, String.class,
Boolean.class, Boolean.class).newInstance(user.getRegisteredAuthToken(),
user.getClientCustomerId(), user.getDeveloperToken(),
user.getClientLibraryIdentifier(), validateOnly, user.isUsingPartialFailure()));
} catch (IllegalStateException e) {
throw new ServiceException(
"Could not get ClientLogin token for user: " + e.getMessage(), e);
} catch (AuthTokenException e) {
throw new ServiceException(
"Could not get ClientLogin token for user: " + e.getMessage(), e);
} catch (InstantiationException e) {
throw new ServiceException("Could not create service class. Check classpath.", e);
} catch (IllegalAccessException e) {
throw new ServiceException(e.getMessage(), e);
} catch (ClassNotFoundException e) {
throw new ServiceException("Could not create service class. Check classpath.", e);
} catch (IllegalArgumentException e) {
throw new ServiceException(e.getMessage(), e);
} catch (SecurityException e) {
throw new ServiceException(e.getMessage(), e);
} catch (InvocationTargetException e) {
throw new ServiceException(e.getMessage(), e.getCause());
} catch (NoSuchMethodException e) {
throw new ServiceException("Could not create service class. "
+ "Check that the correct version of AXIS is being used.", e);
}
}