Wednesday, August 22, 2007

Building on my previous report.   I'm happy to report, I now have a web-service running on a mobile device.   Think of the possibilities.    A low power room temperature monitor,    a radio controlled vehicle taking its commands via a web-service etc. etc.     I'll go into the details and post the code in a while however,  here's a bit of eye candy showing it all working.

So with the Little Web Server running on a CE box,   from within Visual Studio,  I've created a new project and I'm now going to add a reference to a web-service running on the device -

 

image

So far so good the device reports back it has a web-service. 

Lets go ahead and add the reference.   Next step, is to call our remote code -

public string HelloWorld()
        {
            WebReference.Service1 r = new WebReference.Service1();
            return r.HelloWorld();
            
        }
 
Ok, now to run application - 
image 
 
Just like magic, we get a response back from the device into our program.
 
Details and source of all of this to follow..
 

Theme design by Jelle Druyts

Pick a theme: