PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WD20] Can't connect to web service
[WD20] Can't connect to web service
Débuté par rob, 19 oct. 2015 23:26 - 1 réponse
Membre enregistré
105 messages
Posté le 19 octobre 2015 - 23:26
This one has me totally stumped. And it's probably something simple I'm over looking.

I have a WebDev20 WebService I created. I know it works because I call the same functions from a Windows application as well as a Windows Mobile application.

However when trying to connect to it from Android, it fails.

I've double and triple checked my Address property on the imported web service.
Checked to make sure my string variables are the same type.

So out of curiosity, I added the following code to the very first lines of my Initialize code for the project.
IF SocketConnect("192.168.254.186",80) = False THEN
Info("Unable to connect to port 80")
ELSE
Info("Connected to port 80")
END


And it fails to connect. I've tried it both from a mobile device, and from the Android Emulator that comes with the SDK.
Same code in a windows application works fine.
I can telnet to port 80 from a different computer, so I know it's not firewall related. (Windows Firewall is turned off too)

I can open the web browser on both the mobile device, and on the SDK emulator, and browse to the web service's pages just fine.

Any insight would be greatly appreciated.
Membre enregistré
105 messages
Posté le 21 octobre 2015 - 15:54
Well, it helps if I read the documentation for SocketConnect() correctly.

I can at least verify that I'm connecting to the web server now. Now to figure out why I'm not able to retrieve data from the web service.