FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
rob
#1
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
(
s
Text is ANSI
string
,
x
First is numeric
,
x
Second is numeric
)
b
Res1 is
boolean
x
Res2 is numeric
s
Res3 is ANSI
string
x
Res2
=
x
First
+
x
Second
b
Res1
=
IsNumeric
(
s
Text
)
s
Res3
=
s
Text
+
":"
+
x
Res2
RESULT
(
b
Res1
,
x
Res2
,
s
Res3
)
And the WinDev Mobile code is as follows:
b
Res1 is
boolean
x
Res2 is numeric
s
Res3 is ANSI
string
s
Text is ANSI
string
x
First is numeric
x
Second is numeric
s
Text
=
"The result is"
x
First
=
15
x
Second
=
2
(
b
Res1
,
x
Res2
,
s
Res3
) =
Test
(
s
Text
,
x
First
,
x
Second
)
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.
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