EGLService

interface myCalculatorInterface
//Function to add numbers together
function addNumbers(number1 decimal(10,2) in,
number2 decimal(10,2) in) returns (decimal(10,2));
//Function to subtract numbers
function subtractNumbers(number1 decimal(10,2) in,
number2 decimal(10,2) in) returns (decimal(10,2));
end
Then, when you are ready to begin coding the service, you can use this interface both as a starting point and as a test to make sure you are following your plan.
interfaces
EGL will create
this new package because your project doesn't have a package with
this name yet.HelloInterface
The New EGL Interface window looks like this:
function functionName(parameterName string in) returns (int);
function SayHello(name string in, city string in) returns (string);
The interface looks like this:

services
HelloService

ReturnString string;
ReturnString = name::", welcome to "::city::"!";
return (ReturnString);
This code creates a string variable
and assigns it a value based on the parameters, such as "Jim, welcome
to Chicago!" The :: code is a concatenation operator,
which joins separate strings into a single string. The
code looks like this: