解决方案 »

  1.   

    http://www.cnblogs.com/wuhuacong/p/3995494.html
    这篇博文看懂了一半,就是不知该如何运用到.net2003的代码里
      

  2.   

    文章讲的是用C#开发微信企业公众号的接口
    你是想调用这个接口去发消息
    那就调用发消息的那个web服务就可以了
    C#调用WebService,搜索这个
      

  3.   

    找找官网上相关教程的,下面是简要代码:    public static void DoSendText(string access_token, string touser, string content)
        {
            Uri u = new Uri(string.Format("https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={0}"
                , access_token));        SendRequest(u, ToJson(content));
        }    public static string ToJson<T>(string content)
        {
            // 生成 "text"="xxx" 的JSON
        }    private static void SendRequest(Uri uri, string p)
        {
            string res = CodeNet.SendRequest(uri, p);
            if (res.Length > 0)
            {
                //CheckError(res);
            }
        }    public static string SendRequest(Uri uri, string body)
        {
            WebClient wc = new WebClient();
            Encoding enc = Encoding.UTF8;
            return enc.GetString(wc.UploadData(uri, enc.GetBytes(body)));
        }
      

  4.   

    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
    request.Method = “POST”;byte[] bytes = Encoding.Default.GetBytes(requestData);
    request.ContentLength = bytes.Length;
    using (Stream stream = request.GetRequestStream())
     {
            stream.Write(bytes, 0, bytes.Length);
     }using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
     {
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string content = reader.ReadToEnd();
    }