GetUser Function

Oct 5, 2009 at 2:55 PM


Sorry, its me again....

I have been attempting to get the code working in my Windows Mobile Application to call the GetUser function.

The strange thing is, the Core Connector that I have download using the link in the module page has installed and works perfectly.

So, I then downloaded the Source Code for the connector but the version in the Source Code doesn't look like the version I have installed.

I suppose in summary what I am looking for is the code i need to use to tell the application the portalid, the username and the password and whether it is encrypted

So far I have the following code but it just won't work...

Can anyone help me with sending the portalid, username and password please?

Imports TaxiRoute.TaxiRoute_Webservice

Public Class frmLoginScreen

    Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click

        lblLoginStatus.Text = "Opening Server Connection..."

        Dim ws As New TaxiRoute.TaxiRoute_Webservice.WebService()
        ws.Url = ""

        lblLoginStatus.Text = "Checking Login Details..."

        'Retrieve information on the username sing a webservice call GetUser
        Dim strUsername As UserInfo
        strUsername = ws.GetUser("eezie")

        Dim FirstName As String = strUsername.FirstName

        frmMainScreen.Visible = True
        Me.Visible = False

End Sub
End Class




Oct 5, 2009 at 3:17 PM

With each of the web service methods you have to pass a IWebAuthentication header to the web service. You can get the latest source code on the Source code tab of the CodePlex site. If you debug that code you will see where it creates an IwebAuthentication header.