2
Answers

response method

keith.bromwich

keith.bromwich

20y
1.7k
1
how do you in a webservice do a response or handle a get response. in my client i look and try and check to see if the web service is available. Dim url As New System.Uri(WebServiceURL & "/DCRSSync.asmx") ' Create the web request object Dim WebReq As System.Net.WebRequest WebReq = System.Net.WebRequest.Create(url) Dim Resp As System.Net.WebResponse Try ' Try and get a response Resp = WebReq.GetResponse Resp.Close() WebReq = Nothing Return True Catch ex As Exception Resp.Close() WebReq = Nothing Return False End Try so in the webservice what code do i need to give a response back cheers keith
Answers (2)