Welcome to EMC Consulting Blogs Sign in | Join | Help

Keni Barwick - The Mobile Guy

rants and raves of all things Microsoft Windows Mobile - Moved to http://www.theMobileGuy.net

Last night at Kingston University.

Developing and Deploying onto Windows Mobile Devices at Kingston University.

It went well, I'd definitely do something like that again, I wasn't aware of the how late it was getting and I was getting a tad hungry by the end J

Anyway, I promised I’d be giving away my links and free code, so here it is…

First of all we need to consume the GlobalFlyer Web Service, in your SmartDeviceApplication add the Web Reference to the project. (Right click the project > add web reference) This brings up the Add Web Service wizard. In this dialog you enter the Web Service URL and change the name to one of your choice and then choose the Add Web Reference button. You will now have a reference to the web service in your project.

Once this is done, now are ready to write the code to create an instance of the Web Service.

// Create an instance of the FlightInfo Web Service proxy class
FlightInfo1.FlightInfo fl = new FlightInfo1.FlightInfo();

// Add the values to the labels
label1.Text= fl.lat("keni.barwick@conchango.com");
label2.Text= fl.lon("keni.barwick@conchango.com");
label4.Text= fl.speed("keni.barwick@conchango.com");
label3.Text= fl.altitude("keni.barwick@conchango.com");
label5.Text= fl.heading("keni.barwick@conchango.com");
label6.Text = fl.status("keni.barwick@conchango.com");

or grab them all at once…

FlightInfo1.FlightInfo fl = new FlightInfo1.FlightInfo();
label1.Text = fl.allInfo("keni.barwick@conchango.com")[0];
label2.Text = fl.allInfo("keni.barwick@conchango.com")[1];
label3.Text = fl.allInfo("keni.barwick@conchango.com")[2];
label4.Text = fl.allInfo("keni.barwick@conchango.com")[3];
label5.Text = fl.allInfo("keni.barwick@conchango.com")[4];
label6.Text = fl.allInfo("keni.barwick@conchango.com")[5];

Grab the full source from here.

Enjoy

Links
GlobalFlyer Web Tracker – http://globalflyer.com/MissionControl/Tracking/index.jsp
GlobalFlyer Web service – Available on request
Code Sample – http://msdn.microsoft.com/mobility/samples/default.aspx
PInvoke Library –  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PInvokeLib.asp

Credits
Dr M Winnett – Kingston University
Loraine Branch – Conchango
Mark Johnston – Microsoft
Mark Bower – Microsoft

 

Published 23 February 2005 15:01 by Keni.Barwick

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Keni.Barwick said:

A big thank you to Keni for a presentation that was both informative and entertaining!

I'll be installing the software from my freebie CD later today - looking forward to trying some coding myself.

Cheers,

Maria
February 23, 2005 15:25
 

Keni.Barwick said:

keni thanks for the presentation, its always great to see stuff in action rather than just reading about it.
February 24, 2005 13:14
 

Keni.Barwick said:

You spoke with enthusiasm and injected life into this presentation which made it even more interesting. Very good overall and I'm going to look into some of the things you talked about.
February 26, 2005 09:35
 

TrackBack said:

March 1, 2005 18:34
 

Keni Barwick's Blog said:

Last year around this time I did a talk to some Kingston Students around Windows Mobile.
Part of the...
February 7, 2006 11:39
 

Keni Barwick's Blog said:

Last year around this time I did a talk to some Kingston Students around Windows Mobile.
Part of the...
February 7, 2006 13:34
 

Keni Barwick's Blog said:

Last year around this time I did a talk to some Kingston Students around Windows Mobile.
Part of the...
February 7, 2006 13:43
 

Keni Barwick's Blog said:

Last year around this time I did a talk to some Kingston Students around Windows Mobile.
Part of the...
February 7, 2006 18:59
 

Keni Barwick's Blog said:

Last year around this time I did a talk to some Kingston Students around Windows Mobile.
Part of the...
February 9, 2006 18:28

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

I'm an AllExpert at Allexperts.com

http://www.csthota.com/blogmap/ Subscribe in NewsGator Online
Locations of visitors to this page

Powered by Community Server (Personal Edition), by Telligent Systems