Cannot access a webservice from mobile device

Question :

Cannot access a webservice from mobile device,

Answer :

I developed a program in a mobile device (Pocket PC 2003) to access a web service, the web service is installed on a Windows XP SP2 PC with IIS, the PC has the IP

The device obtains from the wireless network the IP and the program works OK, it calls the method from the web service and executes the action that is needed. This program is going to be used in various buildings.

Now I have this problem, it turns that when I try to test it in another building (distances neraly about 100 mts. or 200 mts.) connected with the network, the program cannot connect to the webservice, at this moment the device gets from an Access Point the IP, and it accesses the same XP machine I stated before ( I made a mobile aspx page to verify that I can reach the web server over the network and it loads it in the device, I even made a winform that access the same webservice in a PC from that building and also works there so I don’t understand what is going on. I also tried to ping that PC and it responds alive.

Read More  looping and average in c++

After that fail I returned to the original place where I tested the program before and it happens that it works normally.

The only thing that I look different here is that the third number in the IP is 10 instead of 5, another observation is that I can’t ping to the mobile device. I feel confused I don’t know what happens here? What could be the problem?

This is how I call the web service;

//Connect to webservice  svc = new TheWebService();   svc.Credentials = new System.Net.NetworkCredential(Settings.UserName, Settings.Password);  svc.AllowAutoRedirect = false;  svc.UserAgent = Settings.UserAgent;  svc.PreAuthenticate = true;  svc.Url = Settings.Url;  svc.Timeout = System.Threading.Timeout.Infinite;    //Send information to webservice  svc.ExecuteMethod(info);  

the content of the app.config in the mobile device is;


Does anyone have an idea what is going on?


It was a network issue, we configurated a proxy server and that was the problem, I need to learn more about network.

That’s the answer Cannot access a webservice from mobile device, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you