Last post Jan 11, 2011 12:51 PM by arnab.g.it07
Mar 19, 2009 05:10 AM|smajidali26|LINK
I am working on Windows Mobile application. I am using a webservice there but there is connection Error. Error is "Could not establish connection to network." What should I do as i have this code
Help me plz.
and Second problem is ScrollBars are not working DataGrid. They are displayed but not working in any direction vertical or horizontal
Mar 19, 2009 06:25 AM|SurendraKishore|LINK
1. Create a Windows Mobile based Windows Forms Application
2. Add a Web Reference to your web-service. Now, here is the glitch. While adding a reference it uses your system as a localhost (in some cases port no attached) but when you deploy your application on Windows Mobile, actually your web-service is still running
on your development machine and not on your device. Hence, change this localhost with your development machine name OR machine name on which your web service is hosted. Don't use IP address. Why? Because, when you attach your mobile device to the machine,
using DHCP it gets automatic IP address. So, don't set any IP address rather use machine name.
3. Now, create a proxy class and use that web service in your application.
4. To test the application, run it in emulator or on device. Now, if you're running your application on real physical device then it should work properly. But, if you're running it on emulator, then make sure that...
a. In ActiveSync -> File -> Connection Settings, you have allowed DMA connections.
b. When Device Emulator is running, in Device Emulator Manager, Cradle your device. That means, it'll connect your device emulator to your machine.
This ways you should be able to consume web service hosted on your machine onto your mobile device (whether real-physical device OR emulator).
Mar 20, 2009 02:29 AM|smajidali26|LINK
Thanks It solves my problem. But any idea about scrolbars in DataGrid.
Apr 22, 2010 03:57 AM|turkush|LINK
my web service is located o remote server. when I try to add it, after giving url n clicking Go the web service loads.
But the "Add Refence" button remains disable.
its my first try, ive to make a page which retrieve search results from
http://finservice.sigmatec.com.pk/server.php using method search, on some criterea. Please give some suggestion.
Jan 11, 2011 12:51 PM|arnab.g.it07|LINK
I have an windows mobile forms application which consumes some webservices hosted by some 3rd party. This application is running fine
in m device emaluater .I deployed the application successfully in the device. But when running the application its unable to connect to the web service.
All i am trying to do is send the user id and password in the HttpHeader as a Httprequest and aquire the session id from the web service as a response. its a Http get. working perfectly o the device emaluater. Please help me to resolve the problem... feel
free to mail me at
firstname.lastname@example.org if you have a solution.
Webservice in Windows Mobile