FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 25
→
WM - Como tratar conexão lenta ou sinal muito fraco com o Windev Mobile e webservice?
WM - Como tratar conexão lenta ou sinal muito fraco com o Windev Mobile e webservice?
Iniciado por BOLLER, 31,oct. 2016 22:20 - No hay respuesta
Conéctese…
BOLLER
#1
Miembro registrado
3.659 mensajes
Popularité : +175 (223 votes)
Publicado el 31,octubre 2016 - 22:20
Boa noite
Entao...
Se usar webservice tudo é possivele com garantia de dados
Para isso webservice deve ter no metodo:
- o token de segurança = senha unica que só existe no servidor
- o md5 do que sera enviado
- o que sera enviado
Chegando no servidor os dados, o webservice do metodo deve compara com o md5 com o que veio
Se diferente, deve dizer que veio incompleto = erro
Se webservice bateu md5 com o que veio deve retornar = ok
Simples assim....
Se deu erro a multi thread no Windev mobile deve ficar em loop tentando mandar
Olha que legal e simples de fazer
http://help.windev.com/en-US/…
http://help.windev.com/en-US/…
http://help.windev.com/en-US/…
http://help.windev.com/en-US/…
// Calculate the Hash of values for two edit controls
Hash1 is Buffer
=
HashString
(
HA_MD5_128
,
EDT_
Edit1
)
Hash2 is Buffer
=
HashString
(
HA_MD5_128
,
EDT_
Edit2
)
// Compare the two Hash
IF
Hash1
=
Hash2
THEN
Info
(
"The two strings are identical."
)
// Calculate the Hash of two files
Hash1 is Buffer
=
HashFile
(
HA_MD5_128
,
"C:\My files\FileA.txt"
)
Hash2 is Buffer
=
HashFile
(
HA_MD5_128
,
"D:\My files\FileB.txt"
)
// Compare the two Hash
IF
Hash1
=
Hash2
THEN
Info
(
"The two files are identical."
)
// Check the password:
// - Password typed in the "EDT_TypePassword" control
// - The password Hash is found in the "User.HashPassword" item
IF
HashCheckString
(
HA_MD5_128
,
EDT_
TypePassword
, ...
User.HashPassword
) =
True
THEN
Info
(
"Password OK."
)
// Rest of process
// ...
ELSE
Error
(
"Wrong password."
)
// Resume the input
ReturnToCapture
(
EDT_
TypePassword
)
END
// Calculate the Hash of the "C:\Temp\File.txt" file
HashMyFile is
string
HashMyFile
=
HashFile
(
HA_MD5_128
,
"C:\Temp\File.txt"
)
// Process on the file
// ...
// Checks whether the file was modified
IF
HashCheckFile
(
HA_MD5_128
,
"C:\Temp\File.txt"
, ...
HashMyFile
) =
False
THEN
Info
(
"The file was modified."
)
END
Bons estudos
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Mensaje modificado, 31,octubre 2016 - 22:25
Informar
0
1
→ Volver a WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto