' Get the XML ' expC1 Url Public Shared Function GetXML(ByVal tcUrl As String) As String Dim loReq As System.Net.WebRequest Dim lcHtml As String loReq = System.Net.WebRequest.Create(tcUrl) Dim loResponse As System.Net.WebResponse = loReq.GetResponse() Dim loStream As Stream = loResponse.GetResponseStream() Dim loStreamReader As StreamReader = New StreamReader(loStream) lcHtml = loStreamReader.ReadToEnd() Return lcHtml End FunctionThe line:
Dim loResponse As System.Net.WebResponse = loReq.GetResponse()causes the problem. Basically, this is within a Web Service. So, once that line is reached, a timeout will occur on the Web Service.