RE: Returning Arrays to BDL (or Genero) Web Servic es

Phred Groves <[email protected]> Tue, 4 Apr 2006 10:57:33 +0100
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <C03CBCB8668BD911867400D0090E3C59015867@HERCULES>
Thanks Florencia
 
It appears my web service is running fine - soapui built a test for it and
the data is coming back fine.
 
Phred
 
  _____  

From: Florencia Vitale [mailto:[email protected]] 
Sent: 03 April 2006 15:15
To: [email protected]
Subject: RE: [fourjs-users] Returning Arrays to BDL (or Genero) Web Services
 
Hi Phred,
 
Well, you can use this tester (attached). You must install JRE 1.5 first,
and if you run it from windows, just duoble click on the JNLP file. I don't
know how to run it from another OS (linux, ...), but you can probably find
out on the online documentation : http://www.soapui.org
<http://www.soapui.org> 
 
Then you must create a project, from the WSDL, and then you create test
cases for the Methods. On the code that this program auto-generates, you
replace the "?" for your parameters, and then "run" (green arrow on
toolbar).
 
We could test our Array WS with this Java Client, and it all worked fine.
 
Florencia
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre
de Phred Groves
Enviado el: Lunes, 03 de Abril de 2006 09:48
Para: [email protected]
Asunto: RE: [fourjs-users] Returning Arrays to BDL (or Genero) Web Services
HI Florencia
 
I think my problem is with the client - that's where we get the error
message when we try to call the server - we appear to be doing almost
exactly the same as you in the server and it gives no indication of
problems.
 
I had one of my guys run up a java client to test it that way -
unfortunately java is not a strength and he doesn't know how to get the
multi-record part working in that either.
 
So we think we have a working web service - but we have no way of knowing!
Did you get your Java client working?
 
Phred
 

  _____  

From: Florencia Vitale [mailto:[email protected]] 
Sent: 31 March 2006 16:34
To: [email protected]
Subject: RE: [fourjs-users] Returning Arrays to BDL (or Genero) Web Services
 
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