EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  how to access json from EGL

    Posted Tue March 27, 2018 03:51 AM

    Hi

    can anyone point me in the direction of a full EGL sample that fetches data from  and puts data to a json source - web service or other structure.

     

    TIA

    Morten Hansen, IBM Denmark

    mohaIBMDK


  • 2.  Re: how to access json from EGL

    Posted Tue March 27, 2018 04:12 AM

    What do you mean by "json source"?

    This could be anything.

     

    The functions you mention just convert data. It's like changing an integer to a string.

    Bram_Callewaert


  • 3.  Re: how to access json from EGL

    Posted Tue March 27, 2018 04:39 AM

    Hi Bram, thanks for asking.

    I would like to see a EGL sample on how to get data from an external json web service and how to build an EGL web service using json.

    Both the EGL coding and the environment setup - in Tomcat, WAS or liberty server would be nice.

    TIA

    Morten

    mohaIBMDK


  • 4.  Re: how to access json from EGL

    Posted Tue March 27, 2018 07:10 AM

    I don't know much about json web services. I found the following link useful for orientation: https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.2.0/com.ibm.cics.ts.webservices.doc/concepts/concepts_json.html

     

    As I understand it json is an equivalent of xml. They are data formats.

    To consume web services the data format is only part of the story. There needs to be a definition of how the data is to be retrieved.

    I believe EGL has SOAP and REST support built-in. The result of the service call  is an xml response, which is automatically mapped to egl records.

     

    Do you know how to consume the JSON service?

    Is this based on standards?

     

    Kind regards,

     

    Bram

    Bram_Callewaert


  • 5.  Re: how to access json from EGL

    Posted Fri March 30, 2018 09:39 AM

    Hello @mohaIBMDK.

     

    I'm developing a project in webservice, where I use XML, database, websphere and the like.

     

    With this I use the convertFromXML and convertToXML commands.

     

    For "convertToXML", I read the data from the database, store it in records of type XML., And this command generates the formatted XML.

     

    Already the command "convertFromXML", takes the data from the XML file, throws it to the records of type XML, and hence I can use them as needed.

     

    I did not use JSON .. Would it help you?

     

    Osvaldo Menezes

    @ojomenezes

     

    ojomenezes