Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Lu?s T. on November 21, 2019, 04:00:36 pm



Title: fglwsdl generates globar variables as the parameters
Post by: Lu?s T. on November 21, 2019, 04:00:36 pm
When reading the documentation (https://4js.com/online_documentation/fjs-fgl-3.10.00-manual-html/#fgl-topics/c_gws_client_get_wsdl.html) about how to genererate a WS Client, it says:
Quote
Since BDL functions cannot have complex structures as parameters, the data types are defined as global or modular variables.

Is this still true?

I generate a .inc file from a WSDL and include it in a simple 4gl:

Code
  1. GLOBALS "plim.inc"
  2.  
  3. FUNCTION test( e tGlobalEndpointType )
  4.    RETURN e.*
  5. ENDFUNCTION
  6.  

where tGlobalEndpointType  seems quite complex:
Code
  1. TYPE tGlobalEndpointType RECORD  # End point
  2.    Address RECORD  # Address
  3.        Uri STRING  # URI
  4.    END RECORD,
  5.    Binding RECORD  # Binding
  6.        Version STRING, # HTTP Version (1.0 or 1.1)
  7.        Cookie  STRING, # Cookie to be set
  8.        Request RECORD   # HTTP request
  9.            Headers DYNAMIC ARRAY OF RECORD # HTTP Headers
  10.                Name    STRING,
  11.                Value   STRING
  12.            END RECORD
  13.        END RECORD,
  14.        Response RECORD  # HTTP response
  15.            Headers DYNAMIC ARRAY OF RECORD # HTTP Headers
  16.                Name    STRING,
  17.                Value   STRING
  18.            END RECORD
  19.        END RECORD,
  20.        ConnectionTimeout   INTEGER,# Connection timeout
  21.        ReadWriteTimeout    INTEGER,# Read write timeout
  22.        CompressRequest     STRING  # HTTP request compression mode (gzip or deflate)
  23.    END RECORD
  24. END RECORD
  25.  
  26.  




Title: Re: fglwsdl generates globar variables as the parameters
Post by: Reuben B. on November 25, 2019, 09:50:23 pm
fglwsdl was introduced in Genero 2.00 http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/fgl_whatsnew_200.html
Since then ...
IMPORT FGL introduced in Genero 2.50 http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/fgl_whatsnew_250.html
Methods, INOUT and other syntax introduced in Genero 3.20 http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/fgl_whatsnew_320_2.html

The code fglwsdl generates could be described as 2.00 era code as it has not been changed to incorporate the later syntax.

The new fglrestful tool which is the equivalent of fglwsdl for RESTful Web Services does use the latest and greatest syntax..

There is a task in the system GWS-830 for us to look at updating the code generated by fglwsdl to use the latest syntax available.   If important to you, ask to be added as a requestor to GWS-830


Title: Re: fglwsdl generates globar variables as the parameters
Post by: Lu?s T. on November 26, 2019, 07:08:31 pm
Thanks.
I tried to find the GWS-830 but did not find it. 
If anyone can add me has a requestor, I'l be glad to.


Title: Re: fglwsdl generates globar variables as the parameters
Post by: Reuben B. on November 26, 2019, 09:16:49 pm
The task has not been marked as public.  Once it is marked public, the link will be https://4js.com/support/issue/?id=GWS-830  (As background, when our developers create a task internally it will be marked as private by default).

Your support contact will be able to add you as a requestor.