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