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.  Service call from java generated program

    Posted Thu June 04, 2015 02:37 AM

    When we want to schedule egl service functions to run with the ISeries scheduler, we create a small java program with a service client interface generated from the wsdl file from the service project.

    The only purpose is to call the service.

     

    I tried to create a program in egl, with generation to java, but the "call" statement is not supported for the target system WIN.

     

    Is there a way to accomplish this with only EGL code?

     

    Kind regards,

     

    Bram

     

     

    Bram_Callewaert


  • 2.  Re: Service call from java generated program

    Posted Thu June 04, 2015 04:08 AM

    Hi Bram,

    did you tried something like this?

    With this code I can call a service from an other service maybe it's working with your egl program ...

     

                    lOG_service LOG_service {@bindService};                lOG_service.Write_log("", "", "");

     

    Kind regards!

    Marcel-D


  • 3.  Re: Service call from java generated program

    Posted Thu June 04, 2015 04:42 AM

    Thanks for the help Marcel,

    The errors are gone.

     

    Could you point me in the right direction for actually running the generated Java application?

    The RBD help says I should run the generated java class, but I don't have this option in RBD when I right-click the source file and select run as.

    It only shows Run on server, compiled application, pluglet and run on mobile browser simulator.

     

    Kind regards,

     

    Bram

    Bram_Callewaert


  • 4.  Re: Service call from java generated program

    Posted Thu June 04, 2015 05:00 AM

    I don't know ...

    I can choose Java application point 3 on the screenshot..

     

    Marcel-D

    Attachments



  • 5.  Re: Service call from java generated program

    Posted Thu June 04, 2015 05:09 AM

    Thanks, I probably created the project wrong. I'll check further.

    Bram_Callewaert


  • 6.  Re: Service call from java generated program

    Posted Thu June 04, 2015 09:32 AM

    Bram,

    Not sure if I am answering the question you are asking.  

     

    To run an EGL generated java program, you select the generated <pgmname>.java class in the EGLGen/JavaSource folder and then choose "run as->Java Application".  

     

    If that is not working for you, can you post more details on what you are trying to do.

     

    Mark

    markevans


  • 7.  Re: Service call from java generated program

    Posted Mon June 22, 2015 08:52 AM

    I just wanted to add what I did wrong:

    When I created the program there is a checkbox "Create as called program", which is checked by default.

     

    If you want to run the program on itself, this checkbox needs to be cleared.

     

    Kind regards,

     

    Bram

    Bram_Callewaert