public static String processRequest(HttpServletRequest request) {  
   	 String respMessage = null;  
     try {  
         // ĬϷصıϢ  
         String respContent = "쳣Ժԣ";  

         // xml  
         Map<String, String> requestMap = MessageUtil.parseXml(request);  

         // ͷʺţopen_id  
         String fromUserName = requestMap.get("FromUserName");  
         // ʺ  
         String toUserName = requestMap.get("ToUserName");  
         // Ϣ  
         String msgType = requestMap.get("MsgType");  

         // ظıϢ  
         TextMessage textMessage = new TextMessage();  
         textMessage.setToUserName(fromUserName);  
         textMessage.setFromUserName(toUserName);  
         textMessage.setCreateTime(new Date().getTime());  
         textMessage.setMsgType(MessageUtil.RESP_MESSAGE_TYPE_TEXT);  
         textMessage.setFuncFlag(0);  

         // ıϢ  
         if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_TEXT)) {  
             respContent = "͵ıϢ";  
         }  
         // ͼƬϢ  
         else if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_IMAGE)) {  
             respContent = "͵ͼƬϢ";  
         }  
         // λϢ  
         else if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_LOCATION)) {  
             respContent = "͵ǵλϢ";  
         }  
         // Ϣ  
         else if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_LINK)) {  
             respContent = "͵Ϣ";  
         }  
         // ƵϢ  
         else if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_VOICE)) {  
             respContent = "͵ƵϢ";  
         }  
         // ¼  
         else if (msgType.equals(MessageUtil.REQ_MESSAGE_TYPE_EVENT)) {  
             // ¼  
             String eventType = requestMap.get("Event");  
             //   
             if (eventType.equals(MessageUtil.EVENT_TYPE_SUBSCRIBE)) {  
                 respContent = "ллĹע";  
             }  
             // ȡ  
             else if (eventType.equals(MessageUtil.EVENT_TYPE_UNSUBSCRIBE)) {  
                 // TODO ȡĺûղںŷ͵Ϣ˲ҪظϢ  
             }  
             // Զ˵¼  
             else if (eventType.equals(MessageUtil.EVENT_TYPE_CLICK)) {  
                 // ¼KEYֵ봴Զ˵ʱָKEYֵӦ  
                 String eventKey = requestMap.get("EventKey");  

                 if (eventKey.equals("11")) {  
                     respContent = "Ԥ˵";  
                 } else if (eventKey.equals("12")) {  
                     respContent = "ѯ˵";  
                 } else if (eventKey.equals("13")) {  
                     respContent = "ܱ˵";  
                 } else if (eventKey.equals("14")) {  
                     respContent = "ʷϵĽ˵";  
                 } else if (eventKey.equals("21")) {  
                     respContent = "㲥˵";  
                 } else if (eventKey.equals("22")) {  
                     respContent = "Ϸ˵";  
                 } else if (eventKey.equals("23")) {  
                     respContent = "Ų̊˵";  
                 } else if (eventKey.equals("24")) {  
                     respContent = "ʶ˵";  
                 } else if (eventKey.equals("25")) {  
                     respContent = "ྲ˵";  
                 } else if (eventKey.equals("31")) {  
                     respContent = "QȦ˵";  
                 } else if (eventKey.equals("32")) {  
                     respContent = "Ӱа˵";  
                 } else if (eventKey.equals("33")) {  
                     respContent = "ĬЦ˵";  
                 }  
             }  
         }  

         textMessage.setContent(respContent);  
         respMessage = MessageUtil.textMessageToXml(textMessage);  
     } catch (Exception e) {  
         e.printStackTrace();  
     }  

     return respMessage;  
    }