Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: fglwsdl generates globar variables as the parameters  (Read 4102 times)
Lu?s T.
Posts: 39


« on: November 21, 2019, 04:00:36 pm »

When reading the documentation 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.  


Reuben B.
Four Js
Posts: 965


« Reply #1 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Lu?s T.
Posts: 39


« Reply #2 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.
Reuben B.
Four Js
Posts: 965


« Reply #3 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.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines