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