PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM20] Calling multi-result Webservice returns  incompatible types during assignment
[WM20] Calling multi-result Webservice returns incompatible types during assignment
Débuté par rob, 31 mar. 2015 16:17 - Aucune réponse
Membre enregistré
105 messages
Posté le 31 mars 2015 - 16:17
Hi everyone.

I'm trying to setup a web service with WebDev20 that returns multiple results, and call that web service with WinDev Mobile 20.

I created a very straight forward test procedure to try it out when I started running into difficulty.

The Webservice code is as follows:
Procedure Test(sText is ANSI string, xFirst is numeric, xSecond is numeric)
bRes1 is boolean
xRes2 is numeric
sRes3 is ANSI string

xRes2 = xFirst + xSecond
bRes1 = IsNumeric(sText)
sRes3 = sText + ":" + xRes2

RESULT(bRes1, xRes2, sRes3)


And the WinDev Mobile code is as follows:

bRes1 is boolean
xRes2 is numeric
sRes3 is ANSI string

sText is ANSI string
xFirst is numeric
xSecond is numeric

sText = "The result is"
xFirst = 15
xSecond = 2

(bRes1, xRes2, sRes3) = Test(sText, xFirst, xSecond)
Error()


The error it is returning is "The following error was returned bu the service: Code: 'Server' Message: Incompatible types during assignment.

Is there something syntax wise that I'm missing in calling a procedure this way?
Thank you.