Microsoft MVP성태의 닷넷 이야기
.NET 1.1 에서 WebService Client 의 KeepAlive = false; 설정 [링크 복사], [링크+제목 복사],
조회: 12675
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

가능한 쓰지 않기를 바라지만. ^^;

[원본 토픽] http://groups.google.co.kr/group/microsoft.public.dotnet.framework.aspnet.webservices/browse_thread/thread/132ce6b677e184cf/1e656a2a2ffc6aa0?q=KeepAlive%3Dfalse&rnum=10#1e656a2a2ffc6aa0

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="TestServiceSoap", Namespace="http://localhost/test")]
public class TestService : System.Web.Services.Protocols.SoapHttpClientProtocol {

public TestService()
{
    this.Url = "http://localhost/AWebApp/TestService.asmx";
}

protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
    System.Net.HttpWebRequest webreq = (System.Net.HttpWebRequest)base.GetWebRequest (uri);
    webreq.KeepAlive = false;
    return webreq;
}

}








[최초 등록일: ]
[최종 수정일: 4/14/2006]


비밀번호

댓글 작성자
 




NoWriterDateCnt.TitleFile(s)