PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → [WD20] Can't connect to web service
[WD20] Can't connect to web service
Iniciado por rob, out., 19 2015 11:26 PM - 1 resposta
Membro registado
105 mensagems
Publicado em outubro, 19 2015 - 11:26 PM
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.
Membro registado
105 mensagems
Publicado em outubro, 21 2015 - 3:54 PM
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.