摘要: 接着上一节的processRequest 处理函数,代码如下: /// /// 处理微信发来的请求 /// /// public void processRequest(String xml,HttpContext context) { try { //context.Response.Write("文本消息响应成功,返回源码"+xml); // xml请求解析 XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); XmlElement root = doc.DocumentElement; // 发送方帐号(open 阅读全文
posted @ 2014-03-07 12:30 飞剑 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 童鞋们直接看代码吧:(我这里是ashx处理程序写的类,开发过网站的一般都知道)using System;using System.Web;using System.IO;using System.Text;using System.Security.Cryptography;using System.Security.Policy;using System.Collections;using System.Xml;public class weixin : IHttpHandler { protected string TOKEN = "asdasd"; //TOKEN 必 阅读全文
posted @ 2014-03-07 12:27 飞剑 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 解决办法:仔细一看,原来是我的返回的消息里面 中的 321 有空格,大家请注意了,CDATA里面的数据不能有空格,否则微信服务器不能处理的,除非你的微信号本身就有空格 阅读全文
posted @ 2014-03-07 12:00 飞剑 阅读(675) 评论(0) 推荐(0) 编辑
摘要: asp.net 开发微信公众平台 阅读全文
posted @ 2014-03-07 11:57 飞剑 阅读(7705) 评论(0) 推荐(0) 编辑