catalog-object-name
The name of the catalog object to define.
service-name
The name of an OData service to expose. This name must be unique within the namespace and should not conflict with
other service operations or with any entity set names.
returns multiplicity clause
The following values are used to indicate the multiplicity:
"0"
Use this value for service operations that have no output.
"1"
Use this value for service operations whose return type is either a single simple type or a single complex type.
"*"
Use this value for service operations whose return type is either a collection of simple type or a collection of
complex type.
A service operation may be exposed as both a get and post operation by declaring it twice, however they must be given unique
names.
The OData Producer creates complex types as needed. The complex type for a service operation will include any output parameters
as well as function returns or store procedure results.
The following example illustrates how to declare several service operations:
service {
serviceop post "dba"."P0R0" as "POST0R0" returns multiplicity "0";
serviceop get "dba"."P0R0" returns multiplicity "0";
serviceop get "dba"."P1R0" returns multiplicity "0";
serviceop get "dba"."P0R3" returns multiplicity "*";
serviceop get "dba"."P1R1" returns multiplicity "1";
}