GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
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
Conecte-se…
rob
#1
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.
Denunciar
0
0
rob
#2
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.
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto