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 8461 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:
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:

  1. GLOBALS ""
  3. FUNCTION test( e tGlobalEndpointType )
  4.    RETURN e.*

where tGlobalEndpointType  seems quite complex:
  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

Reuben B.
Four Js
Posts: 1071

« Reply #1 on: November 25, 2019, 09:50:23 pm »

fglwsdl was introduced in Genero 2.00
Since then ...
IMPORT FGL introduced in Genero 2.50
Methods, INOUT and other syntax introduced in Genero 3.20

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
Contributor to
Lu?s T.
Posts: 39

« Reply #2 on: November 26, 2019, 07:08:31 pm »

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: 1071

« 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  (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
Contributor to
Pages: [1]
  Reply  |  Print  
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines