PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Web Service with array of objects parameter on Android
Web Service with array of objects parameter on Android
Started by Omar El Moussaid, Oct., 24 2012 7:56 PM - 1 reply
Connect yourself…
Omar El Moussaid
#1
Posted on October, 24 2012 - 7:56 PM
Hello, I use global procedures to transfer data from my database from my SQLite to SQLServer database and verse versa.
I declared some classes (objects) example: C_Visites, what I want is for example export visits mobile database to SQLServer on my server, so I create a global procedure.
Here is the code of the global procedure (hosted on a web server):
Procedure
Export_Visite
(
tableVisite is
array of
C_Visite
)
v is C_Visite
FOR
ALL
v OF tableVisite
Visite.CodeCompagne
=
v
.CodeCompagne
Visite.CodeOperateur
=
v
.CodeOperateur
Visite.CodeVerger
=
v
.codeverger
Visite.CodeVisite
=
v
.codevisite
Visite.Date_Visite
=
v
.Date_Visite
Visite.Fonction
=
v
.Fonction_tech
Visite.Objectife
=
v
.Objectife
Visite.Presence_De
=
v
.Presence_De
HAdd
(
Visite
)
END
And here is the client side:
tableVisite is
array of
C_Visite
vis is C_Visite
Req_Get_Visite_Non_Valide.ParamOpérateur
=
codeop
//codeoperateur
HExecuteQuery
(
Req_Get_Visite_Non_Valide
)
FOR
ALL
Req_Get_Visite_Non_Valide
//Visite
vis.CodeCompagne
=
Req_Get_Visite_Non_Valide.CodeCompagne
vis.CodeOperateur
=
Req_Get_Visite_Non_Valide.CodeOperateur
vis.CodeVerger
=
Req_Get_Visite_Non_Valide.CodeVerger
vis.CodeVisite
=
Req_Get_Visite_Non_Valide.CodeVisite
vis.Date_Visite
=
Req_Get_Visite_Non_Valide.Date_Visite
..
Date
vis.Fonction_tech
=
Req_Get_Visite_Non_Valide.Fonction
vis.Objectife
=
Req_Get_Visite_Non_Valide.Objectife
vis.Presence_De
=
Req_Get_Visite_Non_Valide.Presence_De
vis.Visite_Valide
=
True
Add
(
tableVisite
,
vis
)
END
Export_Visite
(
tableVisite
)
But it's not working all i get on the web service side is a tableVisite that has one row with all fields set to 0.
Any ideas?
Thanks in advance.
Report
0
0
Manuel
#2
Posted on January, 18 2013 - 4:30 PM
Hi I had the same problem, i solve it by passing the parameters through strings, I think the webservice not support.
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