| I4GL migration guide / Migrate an I4GL web service consumer to Genero | |
The Genero Web service function name is defined in the generated .4gl file and must be used instead of the I4GL function name.
FUNCTION func_cons_ws_zipcode()
DEFINE state_rec RECORD
pin CHAR(10),
city CHAR(100),
state CHAR(100)
END RECORD;
#
# Genero web service status returning
# whether web function call was successful or not
#
DEFINE soapstatus INTEGER
#
# I4GL web service function name is 'cons_ws_zipcode'
# CALL cons_ws_zipcode("97006")
# RETURNING state_rec.city, state_rec.state
# Genero web service function name is 'zipcode_details'
CALL zipcode_details("97006")
RETURNING soapstatus, state_rec.city, state_rec.state
...
END FUNCTION