473,587 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing XML Web service in VB walkthrough clone problem

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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click

Dim ws As New ExportXata.Expo rt
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.GetMonthlyMi leageDataByOrgS ystemID(month,
year, organizationID, truckname)
Catch
Label1.Text = "Conversion failed."
End Try

End Sub

Jan 29 '06 #1
0 1029

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1686
by: BStuart | last post by:
Not sure if this is the correct group to be posting this at but here goes. I am in the MSDN Library and doing the step-by-step instructions on the "Walkthrough: Creating a Distributed Application" and I appear to be a lost at step 5 in the section titled "To create an ASP.NET Web Service project". Line 5 says "In Solution Explorer,...
1
3948
by: Eirik Brattbakk | last post by:
Hi I have some problems accessing a soap service made in c# using an ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and CSoapWininetClient as template arguments with my stub class. The service is returning with the error code: -2147467259. I have not succeeded to find any additional information about the error. The...
4
3529
by: Bruce Parker | last post by:
I have an executable that is launched by a custom action in the Windows Installer. Is there a way to get access to the Session variables (Global Properties)? Also how do I create a return code if there is a failure and I want the install to abort?
7
7095
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully work with J2ME client a) c# web service works with c# WIndows Client (local & remote web service) b) c# web service works with J2ME client - when the...
3
2248
by: carolus.holman | last post by:
I have set <identity impersonate="true" /> on my webservice, and created a proxy user Credential cache in my Winform App inorder to access the service running on Server 2003. What my issue is: I have to grant the User defined in my credential cache administrator access for this to work. If I create low rights user I get 401 unauthorized...
3
4987
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function...
0
1446
by: JT | last post by:
Hi, I've just realized that I'm not as smart as I thought I was. I have no problem creating Windows apps, class libraries, using windows references, etc. But, I absolutely cannot create and use a web service and Windows application pair in VS 2005, even following the walkthrough in Help. There are differences in some of the steps they...
2
4944
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web method may succeed one time and not another. I cannot find any reason why it would work one time and not another. The exception occurs every two...
2
4013
by: Sourcerer | last post by:
I posted these on another group, but was redirected here, so here are my two posts and my questions: Post #1: I've started my first practice windows service project in C#, and I'm already stuck. Let's say I'm trying to make a simple service (and useless, but good for practice). It is supposed to listen on port which is stored in its...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.