response.sendError(HttpServletResponse.SC_UNAUTHORIZED,
"Authentication Failed.");
return;
}
MerchantCalculationCallbackProcessor cp = new MerchantCalculationCallbackProcessorImpl(
mc);
InputStream in = request.getInputStream();
MerchantCalculationCallback callback = new MerchantCalculationCallback(
in);
MerchantCalculationResults results = cp.process(callback);
PrintWriter out = response.getWriter();
out.print(results.getXml());
} catch (Exception ex) {