With EGL, you develop a service or program by coding a Service or Program part, respectively. The basic structure is the same. However, a service might provide several entry points, and programs provide one.
When you create a Service part, you specify whether it will be deployed as a SOAP service, an EGL REST service, and EGL service, or a subset of the three. You can change your decision later when you work with the EGL deployment descriptor. Similarly, when you create a Program part, you specify whether it will be deployed as a standard Java application or as a JEE client application.
Service MyServicePart value STRING = "Hello "; function myEcho(myString STRING IN) returns (STRING) return (value + myString); end end
In this case, the logic accepts an input string, such as “world,” and returns to the requester the concatenation of “Hello” and the input string.