package lemon.weixin.gateway;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * The gateway of weixin
 * @author lemzhang
 *
 */
public class WXMPGateWay extends HttpServlet {
	private static final long serialVersionUID = 1L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		doPost(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		PrintWriter out = resp.getWriter();
		out.print("hello.");
	}


}

@@ -263,16 +263,85 @@
 nse;%0D%0A%0D%0A
+import lemon.shared.api.MmtAPI;%0D%0Aimport lemon.weixin.biz.WXGZAPI;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -824,26 +824,92 @@
 %0D%0A%09%09
-out.print(%22hello.%22
+MmtAPI api = new WXGZAPI();%0D%0A%09%09String msg = null;%0D%0A%09%09out.print(api.getReplayMsg(msg)
 );%0D%0A

test api