章术

导航

2013年1月23日

.net URL请求页面内容 Unable to connect to the remote server

摘要: private static string DownloadFile(string fetchUrl, int requestTimeout, int requestRetryCount) { while (true) { try { using (HttpWebResponse response = (HttpWebResponse)CreateWebRequest(fetchUrl, requestTimeout).GetRespons... 阅读全文

posted @ 2013-01-23 17:15 章术 阅读(2731) 评论(0) 推荐(0) 编辑

WcfTestClient.exe 路径

摘要: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE 阅读全文

posted @ 2013-01-23 11:44 章术 阅读(301) 评论(0) 推荐(0) 编辑

webservice post 和get方法

摘要: 在C#中,新建一个webservice,默认是post类型的。所谓的post就是指方法的参数不是靠URl传入进去的,而是靠的是直接输入值。而Get方式的话,是可以直接访问webservice的方法,然后参数,在source可以通过“this.Context.Request.QueryString["FeedUrl"];”获得。URL:http://localhost:9901/Service.asmx/ChangeArticleCodeLength?FeedUrl=http%3A%2F%2Fmoney.jp.msn.com%2Ftopics_db_rss%2Fbizmako 阅读全文

posted @ 2013-01-23 11:43 章术 阅读(1208) 评论(0) 推荐(0) 编辑