PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

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
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:
bufResult is Buffer
Serialize(arrInventory,bufResult,psdBinary)
RESULT(bufResult)


WM20 Code:
bufResult is Buffer
bufResult = Audit_DownloadInventory()
Deserialize(arrInventory,bufResult,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!!