Calls#

This page covers calling the members of a service, passing their arguments, and matching each response to its call. The messages are described under Anatomy of a Request and Anatomy of a Response.

Members#

calls-service-procedure [core] [MUST]

The client calls a service procedure.

calls-no-return-value [core] [MUST]

A call to a procedure with no return type returns no value.

calls-service-property [core] [MUST]

The client gets and sets a service property, including one with only a getter or only a setter.

calls-class-method [core] [MUST]

The client calls a method of an object, including one that takes another object.

calls-class-static-method [core] [MUST]

The client calls a static method of a class.

calls-class-property [core] [MUST]

The client gets and sets a property of an object, including one with only a getter or only a setter.

calls-class-extension-members [core] [MUST]

The client calls the members another service adds to a class, including one returning a class of a third service.

Deprecated Members#

A client signals the use of a deprecated member, so that a program can move to its replacement. The signal is the language’s own: a warning at run time, or a warning from the compiler. The member still works.

calls-deprecated-procedure [core] [SHOULD]

A client signals a call of a deprecated procedure.

calls-deprecated-property [core] [SHOULD]

A client signals a read and a write of a deprecated property.

calls-deprecated-class [core] [SHOULD]

A client signals a use of a deprecated class.

calls-deprecated-method [core] [SHOULD]

A client signals a call of a deprecated method.

calls-deprecated-enum [core] [SHOULD]

A client signals a use of a deprecated enumeration.

calls-deprecated-enum-value [core] [SHOULD]

A client signals a use of a deprecated value of an enumeration that is not deprecated, and no use of its other values.

calls-deprecated-struct [core] [SHOULD]

A client signals a use of a deprecated structure.

calls-deprecated-struct-field [core] [SHOULD]

A client signals a read of a deprecated field of a structure that is not deprecated, and no read of its other fields.

calls-deprecated-exception [core] [SHOULD]

A client signals a use of a deprecated exception.

calls-deprecated-class-member [core] [SHOULD]

A member of a deprecated class is deprecated, with no deprecation of its own.

calls-deprecated-enum-member [core] [SHOULD]

A value of a deprecated enumeration is deprecated, with no deprecation of its own.

calls-deprecated-struct-member [core] [SHOULD]

A field of a deprecated structure is deprecated, with no deprecation of its own.

calls-deprecated-service [core] [SHOULD]

A client signals a use of a deprecated service, and no use of a service that is not deprecated.

calls-deprecated-service-member [core] [SHOULD]

A member of a deprecated service is deprecated, with no deprecation of its own.

calls-deprecated-stream [streams] [SHOULD]

A client signals a stream of a deprecated procedure, method or property.

calls-deprecated-call [functions] [SHOULD]

A client signals the call of a deprecated procedure, method or property that it builds for a server side function.

calls-deprecated-call-template [functions] [SHOULD]

A client signals the call template it builds of a deprecated procedure, method or property.

calls-deprecated-reason [core] [SHOULD]

A signal gives the reason for the deprecation.

calls-deprecated-reason-of-container [core] [SHOULD]

A member with no reason of its own takes the reason of its service or class.

calls-deprecated-reason-of-member [core] [SHOULD]

A member with a reason of its own keeps it, in a deprecated class.

calls-deprecated-reason-of-class [core] [SHOULD]

A member with no reason of its own, of a deprecated class in a deprecated service, takes the reason of its class.

calls-not-deprecated [core] [MUST]

A client gives no signal for a member that is not deprecated.

Service Definitions#

These requirements apply to a client that builds its services from the server’s definitions when it connects.

calls-exposed-members [definitions] [MUST]

The client exposes exactly the services the server defines, and for each service its procedures other than internal ones, properties, classes, enumerations and structures. A client in a language with exception types also exposes the service’s exceptions. Each class exposes its methods, static methods and properties, including those another service adds, and each enumeration its values.

calls-member-name-case [definitions] [MUST]

Member names are in the case the language names its members in, converted as Case Conversion specifies.

calls-internal-procedure [definitions] [MUST]

The client leaves out a procedure the server marks internal. The client library calls an internal procedure itself, to implement streams, events and server side functions.

calls-unknown-type [definitions] [MUST]

The client leaves out a member or a structure whose type has a code the protocol does not define, as a later version of the server can send, and anything that uses one. The rest of the service works.

calls-undefined-type [definitions] [MUST]

The client leaves out a member whose type names a class, an enumeration or a structure that no service defines, including a parameter with a default value. A type of the same name but another kind does not define it. The rest of the service works.

calls-malformed-definitions [definitions] [MUST]

Service definitions the client cannot build its services from, such as a list type with two element types or a structure defined twice, make the connect raise the connection error.

calls-enumeration-default [definitions] [MUST]

A procedure’s parameter defaults to a value of an enumeration, alone or in a collection, or to a combination of the values of a flags enumeration. The client calls the procedure without the argument, and sends none. The enumeration is of the same service or another, in either order in the definitions.

calls-structure-default [definitions] [MUST]

A procedure’s parameter defaults to a value of a structure, which holds a structure of another service. The client calls the procedure without the argument, and sends none. The other service comes before or after in the definitions.

Arguments#

calls-several-arguments [core] [MUST]

The client passes several arguments of different types.

calls-long-request [definitions] [MUST]

A call whose service name, procedure name and argument are longer than 127 bytes, with 200 arguments, arrives intact.

calls-omitted-arguments [defaults] [MUST]

The client omits trailing arguments that have defaults, from a procedure, a method or a static method.

calls-default-values [defaults] [MUST]

An omitted argument takes its default, of any type. NaN, the infinities and the extremes of each numeric type arrive intact.

calls-named-arguments [named-arguments] [MUST]

The client passes arguments by name, and omits a default that is not trailing. A duplicate or unknown name raises the argument error.

calls-skipped-arguments [defaults, skipped-arguments] [MUST]

The client skips an argument that has a default, by position, and passes the arguments after it. Skipping an argument with no default, at a parameter that cannot hold null, raises the argument error.

calls-too-few-arguments [dynamic] [MUST]

Omitting an argument with no default raises the argument error.

calls-too-many-arguments [dynamic] [MUST]

Too many arguments raise the argument error.

Responses#

calls-undecodable-argument-fails-its-call [core] [MUST]

A call with an argument the server cannot decode fails with the server’s ArgumentException, in the error field of its result. The other calls in the request run, and their results stay in order.

calls-argument-position-out-of-range-fails-its-call [core] [MUST]

A call with an argument position past the procedure’s last parameter fails with the server’s ArgumentException, in the error field of its result. The description names the position and the procedure. The other calls in the request run, and their results stay in order.

calls-duplicate-argument-position-fails-its-call [core] [MUST]

A call with two arguments at one position fails with the server’s ArgumentException, in the error field of its result. The description names the position and the procedure. The other calls in the request run, and their results stay in order.

calls-unique-ids [concurrency] [MUST]

Each request has an id that no other waiting request has.

calls-match-by-id [concurrency] [MUST]

The client matches a response to its call by the id, in any order the responses arrive.

calls-abandoned-id [concurrency] [SHOULD]

A call interrupted while waiting abandons its id, and raises the language’s error for an interrupted thread. The client discards the response to that id.

calls-unknown-id [core] [MUST]

A response whose id matches no waiting or abandoned request fails the connection. The client sends a disconnect with the reason PROTOCOL_ERROR.

calls-slow-call [core] [MUST]

A call waits for its response for as long as the procedure runs. The handshake timeout does not apply to the wait.