public static void send(WxSendMsg msg, OutputStream out) throws JDOMException, IOException { Document doc = WxMsgKit.parse(msg); if (null != doc) { new XMLOutputter().output(doc, out); } else { Logger.getAnonymousLogger().warning("发送消息时,解析出dom为空 weixin.popular.msg :" + msg); } }
public static WxRecvMsg recv(InputStream in) throws JDOMException, IOException { return WxMsgKit.parse(in); }