|
I am running into an exception in the function below. I have just started running this demo application, and it won't get past "dataservice.Authenticate()"
It keeps throwing a SoapException and a message pops up "Server not responding. Please try again."
What's wrong?
-------------------------------------
Public Shared Function Authenticate(username As String, password As String) As WebServicesExceptionType Dim dataService As IssueVisionServices = GetWebServiceReference(username, password) Dim exceptionType As WebServicesExceptionType = WebServicesExceptionType.None
Try dataService.Authenticate() Catch webEx As WebException exceptionType = WebServicesExceptionType.WebException Catch soapEx As SoapException If soapEx.Actor = "Security" Then exceptionType = WebServicesExceptionType.SoapException Else exceptionType = WebServicesExceptionType.WebException End If Catch ex As Exception exceptionType = WebServicesExceptionType.Exception End Try Return exceptionType End Function |