Пример #1
0
 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);
   }
 }
Пример #2
0
 public static WxRecvMsg recv(InputStream in) throws JDOMException, IOException {
   return WxMsgKit.parse(in);
 }