FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
rob
#1
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.
Signaler
0
0
rob
#2
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.
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte