Accessing XML Web service in VB walkthrough clone problem

T

Tony Girgenti

Hello.

Using VS .NET 2003 VB

I used the walkthrough "Accessing an XML Web Service Using Visual Basic or
Visual C#" VB version to create my own project. The code supplied uses the
Try/Catch statements and if there is an error, it only gives the message
under the Catch part. If it is failing to do the Logon, is there a way to
capture an exact error message/number so that i can figure out what's going
on ?

Here is the code. Any help would be greatly appreciated.

Thanks,
Tony

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Dim ws As New ExportXata.Export
Dim XataTruckData As DataSet
Dim month As Integer
Dim year As Integer
Dim organizationID As Integer
Dim truckname As String
Dim LogonRet As Boolean

Try
LogonRet = ws.Logon
Catch
Label1.Text = "Logon failed."
Exit Sub
End Try

Try
XataTruckData = ws.GetMonthlyMileageDataByOrgSystemID(month,
year, organizationID, truckname)
Catch
Label1.Text = "Conversion failed."
End Try

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top