PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM17] tableau de structure web service
[WM17] tableau de structure web service
Débuté par Duhamel, 11 sep. 2012 17:21 - Aucune réponse
Posté le 11 septembre 2012 - 17:21
Je rencontre un probléme, je fait un web service d'ajout de geolocalisation,
en parametre attendu c'est un tableau de structure geolocalisation.
Quand j'appel le web service en lui donnant un tableau de structure de geolocalisation en paramétre,
mon tableau est vide à la reception est pourtant il contient bien plusieur enregistrements avant l'envoie au web service.

D'ou vient ce probleme? est ce une variable mal declaré ou declaré au mauvaise endroit?
Je precise que je suis en windev 17 et l'appli est pour android.
J'ai aucune erreur dans le web service ormis que le tableau recu est vide.
Si je fait la meme chose avec en paramétre une structure geolocalisation et non un tableau
de géolocalisation ca fonctionne.

A l'aide.

Mon web services est le suivant:

Déclaration de COL_Geolocalisations
ST_WS_Une_Geolocalisation est une structure
idtech est un entier
latitude est une chaîne
longitude est une chaîne
altitude est une chaîne
direction est une chaîne
vitesse est une chaîne
dateheure est une DateHeure
typesignal est une chaîne
typeajout est une chaîne
FIN



PROCEDURE Ajout_Geolocalisation(TAB_WS_Les_Geolocalisations est un tableau de ST_WS_Une_Geolocalisation)
WS_Une_Geolocalisation est une ST_WS_Une_Geolocalisation
POUR TOUT WS_Une_Geolocalisation DE TAB_WS_Les_Geolocalisations
geolocalisation.altitude=WS_Une_Geolocalisation.altitude
geolocalisation.dateheure=Une_Geolocalisation.dateheure
geolocalisation.direction=WS_Une_Geolocalisation.direction
geolocalisation.idtech=WS_Une_Geolocalisation.idtech
geolocalisation.latitude=WS_Une_Geolocalisation.latitude
geolocalisation.longitude=WS_Une_Geolocalisation.longitude
geolocalisation.typeajout=WS_Une_Geolocalisation.typeajout
geolocalisation.typesignal=WS_Une_Geolocalisation.typesignal
geolocalisation.vitesse=WS_Une_Geolocalisation.vitesse
HAjoute(geolocalisation)
FIN


L'appel a ce web service est le suivant:

Une_geolocalisation est ST_WS_Une_Geolocalisation
Les_geolocalisations est un tableau de ST_WS_Une_Geolocalisation
HLitPremier(geolocalisation)
TANTQUE PAS HEnDehors(geolocalisation)
Une_geolocalisation.altitude=geolocalisation.altitude
Une_geolocalisation.dateheure=geolocalisation.dateheure
Une_geolocalisation.direction=geolocalisation.direction
Une_geolocalisation.idtech=geolocalisation.idtech
Une_geolocalisation.latitude=geolocalisation.latitude
Une_geolocalisation.longitude=geolocalisation.longitude
Une_geolocalisation.typeajout=geolocalisation.typeajout
Une_geolocalisation.typesignal=geolocalisation.typesignal
Une_geolocalisation.vitesse=geolocalisation.vitesse
TableauAjoute(Les_geolocalisations,Une_geolocalisation)
HLitSuivant(geolocalisation)
FIN
Ajout_Geolocalisation(Les_geolocalisations)