PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
[WM20] Buffer not transfering correctly from web service
[WM20] Buffer not transfering correctly from web service
Started by rob, Feb., 01 2016 4:59 PM - No answer
Connect yourself…
rob
#1
Registered member
105 messages
Posted on February, 01 2016 - 4:59 PM
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!!
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text