0
asp.net Webサービス内にある場合は、.NetのHttpWebRequest経由でHTTP GET/POSTを使用する際に問題が発生します。 ここの問題。 コードの同じ部分は、Windowsフォーム/コンソールアプリケーションから正常に動作は、asp.net Webサービス内でHTTP GETを使用できません。[WebMethod]
[WebMethod]
public string someWebMethod()
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.google.com");
WebResponse resp = request.GetResponse(); <---------This is hanging... any idea how to work around?
.......
}