|
| How to pass data from web service response? |
| Iniciado por alena.skyvova, 23,jun. 2016 14:09 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 23,junio 2016 - 14:09 |
Hello, please, help me. I consume web service in my project. The response function can return more records. I don't know how to get these records.
This works for 1 record:
jobrequest is GetJobRequest jobresponse is GetJobResponse
jobresponse = getJob(jobrequest)
How to find all for example jobresponse.jobs.subject ?
Thanks, Alena |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 14:50 |
Hi Alena,
it depends mostly of the webservice.. if it is returning an array, then a for each loop should do the trick on your side
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 15:59 |
Many thanks, Fabrice. It looks very good, but does not work:
FOR EACH job OF jobresponse Info(jobresponse.jobs.subject)
END
The error is: GetJobResponse Is not subscripted element. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,junio 2016 - 17:15 |
So it's NOT an array... You'll find all the information in the documentation of the webservice
Le 6/23/2016 à 7:59 AM, Alena a écrit :
Many thanks, Fabrice. It looks very good, but does not work: FOR EACH job OF jobresponse Info(jobresponse.jobs.subject) END The error is: GetJobResponse Is not subscripted element. |
| |
| |
| | | |
|
| | | | |
| | |
|