FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
[WM20] Buffer not transfering correctly from web service
[WM20] Buffer not transfering correctly from web service
Débuté par rob, 01 fév. 2016 16:59 - Aucune réponse
Connectez-vous…
rob
#1
Membre enregistré
105 messages
Posté le 01 février 2016 - 16:59
Heya everyone. So I have a bit of a strange one here.
I have a web service written in WebDev20 that returns an array of data via web service to a WD Mobile 20 application.
I'm already transferring sets of data in other places of the program, so I know that's working correctly.
But this particular data set can be very large. But I'm using a small set of data for testing. So I figured transferring it in a buffer variable would be best. (maybe another way is better)
WebDev code:
buf
Result is Buffer
Serialize
(
arr
Inventory
,
buf
Result
,
psdBinary
)
RESULT
(
buf
Result
)
WM20 Code:
buf
Result is Buffer
buf
Result
=
Audit_DownloadInventory
(
)
Deserialize
(
arr
Inventory
,
buf
Result
,
psdBinary
)
As you can see, nothing fancy here.
But what's happening, is the data when it arrives on the mobile device isn't the same as it was in the web dev application.
If I put break points after the Serialize() line in WebDev, and before the Deserialize() line in WinDev Mobile, I get the following values for bufResult. (truncated the hex because it's very long, but you get the idea)
WebDev:
50 43 53 00 06 00 00 00 05 00 00 00 00 00 00 00 53 01 00 00 EE 05 00 00 01 00 00 00 4F 01 00 00 00 00 00 00 FF CE 88 F1 18 00 00 00 53 54 49 6E
WinDev Mobile:
55 00 45 00 4E 00 54 00 41 00 41 00 59 00 41 00 41 00 41 00 41 00 46 00 41 00 41 00 41 00 41 00 41 00 41 00 41 00 41 00 41 00 46 00 4D 00 42 00
As you can see, they're entirely different values.
Anyone have any idea what's going on there? In the mean time, I'm going to see if I can come up with another way to transfer the data.
As always, thanks!!
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