C# 调用微信现金红包接口类网页没有任何反馈是什么意思?有没有大神给指导一下。

   //请求api 带证书的方法
    /// </summary>
    /// <param name="URL"></param>
    /// <param name="strPostdata"></param>
    /// <param name="strEncoding"></param>
    /// <returns></returns>

    public bool CheckValidationResult(
        Object sender,
        X509Certificate certificate,
        X509Chain chain,
        SslPolicyErrors sslPolicyErrors
    )
    {
        //   Always   accept   
        return true;
    }


    public   string OpenReadWithHttps(string URL, string strPostdata, string strEncoding)
    {
        try
        {
            Encoding encoding = Encoding.UTF8;

            string cert = @"C:\zhengshu\apiclient_cert.p12";
            string password = "xxxxxxxxxx";//这里是填写的是 微信支付商户号

            ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
            X509Certificate cer = new X509Certificate(cert, password);
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
            request.ClientCertificates.Add(cer);


            request.Method = "post";

            request.Accept = "text/html, application/xhtml+xml, */*";

            request.ContentType = "application/x-www-form-urlencoded";


            byte[] buffer = encoding.GetBytes(strPostdata);

            request.ContentLength = buffer.Length;

            request.GetRequestStream().Write(buffer, 0, buffer.Length);

            HttpWebResponse response = (HttpWebResponse)request.GetResponse();

            using (StreamReader reader = new StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding(strEncoding)))
            {
                return reader.ReadToEnd();
            }
        }
        catch (Exception e)
        {

            return "";
        }

    }

//调用OpenReadWithHttps方法  其中sendxml已经构造好了没有问题
 Class1 ojb = new Class1();
  ojb.OpenReadWithHttps(url, sendxml, "UTF-8");
现在就是网页没有认为反馈,按道理腾讯是不是应该回馈一个xml?我这里哪里又问题,请大神帮忙给看看。调用证书这块有没有问题,我将证书C:\zhengshu\apiclient_cert.p12放到这里目录里并安装了。

没返回内容可能是执行到catch语句了,在catch中用IO将错误信息写入文件中看是否报错

  catch (Exception e)
        {
File.WriteText("错误日志物理路径",e.Message,Encoding.UTF8);///
            return "";
        }

showbo, 下边是sendxml的打印出来的文本, url="https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack" ,
ojb.OpenReadWithHttps(url, sendxml, "UTF-8")现在报the specified URL bannot be found,这个就很奇怪了。请大侠就我。敏感的内容我用X影藏了。


<![CDATA[幸运红包]]>
<![CDATA[xx.xx.xx.xx]]>
<![CDATA[100]]>
<![CDATA[100]]>
<![CDATA[1235441702201706057747324121]]>
<![CDATA[xxxxxxxxx]]>

<![CDATA[TE5K4TPDLXD1LKA0P5RSLSAELOJSCPDQ]]>
<![CDATA[提供方名称]]>
<![CDATA[xxxxxxxxxxx]]>
<![CDATA[提现问题,请联系客服人员]]>
<![CDATA[中国分公司]]>
<![CDATA[1]]>
<![CDATA[100]]>
<![CDATA[幸运红包]]>
<![CDATA[xxxxxxxx]]>
<![CDATA[085ED10539B88D3827A49EB191556813]]>


<![CDATA[幸运红包]]>
<![CDATA[xx.xx.xx.xx]]>
<![CDATA[100]]>
<![CDATA[100]]>
<![CDATA[1235441702201706057747324121]]>
<![CDATA[xxxxxxxxx]]>

<![CDATA[TE5K4TPDLXD1LKA0P5RSLSAELOJSCPDQ]]>
<![CDATA[提供方名称]]>
<![CDATA[xxxxxxxxxxx]]>
<![CDATA[提现问题,请联系客服人员]]>
<![CDATA[中国分公司]]>
<![CDATA[1]]>
<![CDATA[100]]>
<![CDATA[幸运红包]]>
<![CDATA[xxxxxxxx]]>
<![CDATA[085ED10539B88D3827A49EB191556813]]>

图片说明
粘贴进去的xml字段名没有了,好奇怪,发个图片附件大家看看

showbo大神,还是这段代码,咨询下,我现在调用红包正常,但是想得到腾讯给我返回的xml,但是不知道怎么得到。using里reader.ReadToEnd()返回的是红包的金额,不是腾讯返回的xml。请指点下我。多谢

        HttpWebResponse response = (HttpWebResponse)request.GetResponse();

        using (StreamReader reader = new StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding(strEncoding)))
        {
            return reader.ReadToEnd();
        }
    }
    catch (Exception e)
    {

        return "";
    }