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.  calling egl service from iseries

    Posted Thu August 10, 2017 10:34 PM

    i have an egl service that i would like to execute from the iseries. i would like to pass it values and have values returned. Is this possible?

     

    nick_tn


  • 2.  Re: calling egl service from iseries

    Posted Mon August 14, 2017 01:36 AM

    Hi Nick, if it's a SOAP service you can try

    https://www-03.ibm.com/systems/resources/systems_i_software_iws_pdf_WebServicesClient_new.pdf

     

     

    Regards Arie.

    Axians


  • 3.  Re: calling egl service from iseries

    Posted Mon August 21, 2017 03:40 AM

    We create a small standalone egl application and generate to java. We then export the java program to a jar file and call it from the iseries.

    Passing parameters is possible.

    I don't know how to return values.

     

    We only use this to start jobs with the job scheduler.

     

    Kind regards,

     

    Bram

    Bram_Callewaert


  • 4.  Re: calling egl service from iseries

    Posted Mon August 21, 2017 02:41 PM

    1) Create a services,
    2) Create your functions contain your need
    3) In function implement "return"

    service myService

     function myFunction (myArgs string in) returns (string)

        ,,,,, 

       return("Xpto")

     end

     

    end

    4) Generate the wsdl
    5) Generate the interface

    When generating the interface, the return is already generated.

    I helped ??

     

    ojomenezes


  • 5.  Re: calling egl service from iseries

    Posted Tue August 22, 2017 02:41 AM

    I believe the problem is how to return the values to the calling program on the iseries. If I understand correctly the return values have to be available in the CL or RPG program.

    Bram_Callewaert