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.  EGL Java call Webservice

    Posted Mon August 29, 2016 03:57 PM

    Hi Folks,

     

    Does anyone have a sample EGL Java client call Webservice ?  REST SOAP...

     

    thanks.

    Hsieh


  • 2.  Re: EGL Java call Webservice

    Posted Tue August 30, 2016 08:28 AM

    There might be something in either the blog or files section of this community:

    https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=3e2b35ae-d3b1-4008-adee-2b31d4be5c92

    Jeff.Douglas


  • 3.  Re: EGL Java call Webservice

    Posted Tue August 30, 2016 12:46 PM

    Thanks ! Jeff.

    I will to study it.

    Hsieh


  • 4.  Re: EGL Java call Webservice

    Posted Tue August 30, 2016 10:45 AM

    We use this all the time. If we want to start some web service logic from a remote application, we create an standalone egl java program, and use that to call the (soap) web service.

     

    To consume the web service you have to create the client interface from the wsdl file and then use it:

    package com.molcy.egl.SCD;import com.molcy.webservices.services.BBKlantService;import com.molcy.webservices.services.BestandService;import com.molcy.webservices.services.EmailService;program SCDLijstOpenBBKlanten2 type BasicProgram {}                bbKlantService BBKlantService {@bindService};        emailService EmailService {@bindService};        bestandService BestandService {@bindService};                function main()                addr String[0];                 if (datetimelib.weekdayOf(datetimelib.currentTimeStamp()) == 4)                        addr = ["address1@molcy.com", "address2@molcy.com", "address3@molcy.com", "address4@molcy.com"];                else                        addr = ["address1@molcy.com", "address5@molcy.com"];                end                 dat date = datetimelib.currentDate() + 365;                 imid Decimal(8) = bbKlantService.getLijstenAllOpenstaandeLeveringen(2, dat);                 emailService.SendWithAttachment(addr, "New list outstanding deliveries", "See attachment", [imid]);                 bestandService.removeBestand(imid);         end        end

    I have no experience using rest services, but I assume it is very similar.

     

    Kind regards,

     

    Bram

    Bram_Callewaert


  • 5.  Re: EGL Java call Webservice

    Posted Tue August 30, 2016 12:45 PM

    Hi Bram,

    Thank you so much for reply. I will try to do it.

    Hsieh