try{
setGatewayService();
if(mvrGW == null){
throw new Exception("Could not obtain a reference to the MVRGatewayService");
}
// Call the gateway service to process the request
mvrGW.processRequest(searchContext);
// Output the resultant XML to the client
out.print(searchContext.getMVRResponse().getResponseXML());
}
catch (Exception e){
e.printStackTrace();
out.print(getErrorXML());
}
private void setGatewayService() throws Exception {
try{
mvrGW = (MVRGatewayService) nameUtil.lookupService("com.acxiom.gateway.mvr.service.MVRGatewayService");
} catch (Exception e){
throw e;
}
}