All pastes #520375 Raw Edit

Miscellany

public text v1 · immutable
#520375 ·published 2007-05-29 22:20 UTC
rendered paste body
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;  
       } 
  }