With EGL, you start to develop a service by coding a Service part in an EGL project. For example, consider the following part:
Service MyServicePart value STRING = "Hello "; function myEcho(myString STRING IN) returns (STRING) return (value = myString); end end
The content of the Service part is the service implementation, which in this case accepts an input string, such as “world”, and returns to the requester the concatenation of “Hello ”and the input string. The service implementation does not vary according to how you deploy the service.
When you create a Service part, you specify whether it will be deployed as a SOAP service, an EGL REST service, both, or neither. You can change your decision later, when working in the EGL deployment descriptor editor. Also, you can reference the service locally, as explained in “Service access in EGL.”
A service can access other services, relational databases, programs, files, and MQSeries® message queues. For an overview of how to handle those cases, see “Resources that are accessed by a service.”