RE: Returning Arrays to BDL (or Genero) Web Services

"Florencia Vitale" <[email protected]> Fri, 31 Mar 2006 12:34:05 -0300
Newsgroups gmane.comp.lang.4gl.fourjs.user
Organization MEYA
Message-ID <009901c654d8$8bb8efe0$140a7f80@florencia>
Hi Phred,
 
I have a working example, with a server that runs on BDS (with ARRAY) and
Genero (with DYNAMIC ARRAY), and a client that runs in Genero.
 
When accessing the server, with my Genero client, all methods work fine (one
record and list of records).
 
But when I tried to access the server, with another WebService client, the
method that returns a list of records didn't work (but I don't remember the
error code).
 
Today afternoon I will be trying to access the server method that returns a
list of values, with a Java client (it's being built right now), and will
see if it works fine with the java client.
 
Your problems are with the server or with the client ? Both are written in
Genero (or BDS) or are you testing with another client ?
 
I'm attaching the server demo. Two of the 4gl have alternatives :
 
    .4gl.gen is for Genero
    .4gl.bds is for BDS

Florencia
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre
de Phred Groves
Enviado el: Viernes, 31 de Marzo de 2006 10:49
Para: '[email protected]'
Asunto: [fourjs-users] Returning Arrays to BDL (or Genero) Web Services


I am having trouble trying to return multiple sets of data from a web
service.
 
I have everything working fine for a single selection that takes a couple o
parameters and returns one record of several fields but now I want to return
multiple records and I can't seem to get a format for the response that will
work.  I am presuming that I need to use an array in some way but every
effort I make ends up giving 4323 (too complex) errors.
 
Has anyone had any success with this, preferably in BDL for the moment but
we are moving to Genero, and if so could you please post a simple example of
the DEFINE and CALL sections you used?
 
I have seen that there used to be a problem passing arrays between functions
(not something I've ever done) but that it now seems to be OK - any clues
there?
 
Thanks for your attention
 
Phred Groves
DataPro Software Limited
North Wing
11 North Street
Portslade
Brighton  BN41 1DH
 
Tel: 01273 886060
Mobile: 07971 980203
Email:  <mailto:[email protected]> [email protected]
Web:  <http://www.datapro.co.uk/> www.datapro.co.uk
ws_serv.zip (application/x-zip-compressed, 6 KB) - not displayed