.rs
.\" Troff code generated by TPS Convert from ITU Original Files
.\"                 Not Copyright (~c) 1991 
.\"
.\" Assumes tbl, eqn, MS macros, and lots of luck.
.TA 1c 2c 3c 4c 5c 6c 7c 8c
.ds CH
.ds CF
.EQ
delim @@
.EN
.nr LL 40.5P
.nr ll 40.5P
.nr HM 3P
.nr FM 6P
.nr PO 4P
.nr PD 9p
.po 4P

.rs
\v'|.5i'
.sp 2P
.LP
\fBRecommendation X.219\fR 
.RT
.sp 2P
.ce 1000
\fBREMOTE\ OPERATIONS:\fR 
.EF '%	Fascicle\ VIII.4\ \(em\ Rec.\ X.219''
.OF '''Fascicle\ VIII.4\ \(em\ Rec.\ X.219	%'
.ce 0
.sp 1P
.ce 1000
\fBMODEL,\ NOTATION\ AND\ SERVICE\ DEFINITION\fR 
.FS
Recommendation X.219 and ISO 9072\(hy1 [Information Procesing Systems \(em 
Text 
Communications \(em Remote Operations, Part\ 1: Model, Notation and Service
Definition] were developed in close
collaboration and are technically aligned
.FE
.ce 0
.sp 1P
.ce 1000
\fI(Melbourne, 1988)\fR 
.sp 9p
.RT
.ce 0
.sp 1P
.LP
	The CCITT,
.sp 1P
.RT
.sp 1P
.LP
\fIconsidering\fR 
.sp 9p
.RT
.PP
(a)
that Recommendation X.200 defines the Reference Model of Open Systems Interconnection 
(OSI) for CCITT applications; 
.PP
(b)
that Recommendation X.210 defines the service
conventions for describing the services of the OSI reference model,
.PP
(c)
that Recommendation X.216 defines the Presentation
Layer service;
.PP
(d)
that Recommendation X.217 defines the Association
Control Service;
.PP
(e)
that Recommendation X.218 defines the Reliable
Transfer service;
.PP
(
f
)
that Recommendation X.229 defines the Remote
Operations protocol;
.PP
(g)
that there is a need for common Remote Operations
support for various applications;
.sp 1P
.LP
\fIunanimously declares\fR 
.sp 9p
.RT
.PP
that this Recommendation defines the Remote Operation service and notation 
of Open Systems Interconnection for CCITT Applications as given in the 
Scope and Field of Application. 
.sp 1P
.ce 1000
\fBCONTENTS\fR 
.ce 0
.sp 1P
.sp 2P
.LP
0
	\fIIntroduction\fR 
.sp 1P
.RT
.sp 1P
.LP
1
	\fIScope and Field of Application\fR 
.sp 9p
.RT
.sp 1P
.LP
2
	\fIReferences\fR 
.sp 9p
.RT
.sp 1P
.LP
3
	\fIDefinitions\fR 
.sp 9p
.RT
.sp 1P
.LP
4
	\fIAbbreviations\fR 
.sp 9p
.RT
.sp 1P
.LP
5
	\fIConventions\fR 
.sp 9p
.RT
.sp 1P
.LP
6
	\fIRemote Operations Model\fR 
.sp 9p
.RT
.sp 1P
.LP
7
	\fIOverview of Notation and Service\fR 
.sp 9p
.RT
.sp 1P
.LP
8
	\fIRelationship with other Application Service Elements\fR 
.sp 9p
.RT
.sp 1P
.LP
9
	\fIRemote Operations Notation\fR 
.sp 9p
.RT
.sp 1P
.LP
10
	\fIService Definition\fR 
.sp 9p
.RT
.sp 1P
.LP
11
	\fIMapping of Notation to Service\fR 
.sp 9p
.RT
.sp 1P
.LP
12
	\fISequencing Information\fR .bp
.sp 9p
.RT
.sp 1P
.LP
\fIAnnex\ A\fR 	\(em
	Notation Supporting the Specification of
application\(hyservice\(hyelements and Application Contexts
.sp 9p
.RT
.sp 1P
.LP
\fIAnnex\ B\fR 	\(em
	Guidelines for application Protocol Designers on the Use   of ROSE
.sp 9p
.RT
.sp 2P
.LP
\fB0\fR 	\fBIntroduction\fR 
.sp 1P
.RT
.PP
This Recommendation defines a notation and the services provided by an 
application\(hyservice\(hyelement\ \(em\ the Remote Operations Service 
Element 
(ROSE)\ \(em\ to support interactive applications in a distributed open systems
environment. This Recommendation is one of a set of Recommendations defining
sets of application\(hyservice\(hyelements commonly used by a number of
applications.
.PP
Interactions between entities of a distributed application are modeled 
as Remote Operations, and defined using a Remote Operations Notation. A 
Remote Operation is requested by one entity; the other entity attempts 
to perform the Remote Operation and then reports the outcome of the attempt. 
Remote 
Operations are supported by the ROSE.
.PP
This Recommendation is technically aligned with ISO\ 9072\(hy1.
.RT
.sp 2P
.LP
\fB1\fR 	\fBScope and Field of Application\fR 
.sp 1P
.RT
.PP
This Recommendation defines a Remote Operation (RO\(hy) Notation for defining 
the services provided to interactive applications. This Recommendation 
also defines the services provided by the Remote Operation Service Element 
(ROSE) services. The ROSE services are provided by the use of the ROSE 
protocol (Recommendation\ X.229) in conjunction with the Association Control 
Service 
Element (ACSE) services (Recommendation\ X.217) and the ACSE protocol
(Recommendation\ X.227), optionally the Reliable Transfer Service Element 
(RTSE) services (Recommendation\ X.218) and the RTSE protocol (Recommendation\ 
X.228), and the presentation\(hyservice (Recommendation\ X.216). 
.PP
No requirement is made for conformance to this Recommendation.
.RT
.sp 2P
.LP
\fB2\fR 	\fBReferences\fR 
.sp 1P
.RT
.LP
	X.200
	 Reference Model of Open Systems Interconnection for CCITT Applications 
(see also ISO\ 7498). 
.LP
	X.208
	Specification of abstract syntax notation (see also
ISO\ 8824).
.LP
	X.209
	Specification of Basic Encoding Rules for the abstract
syntax notation (see also ISO\ 8825).
.LP
	X.210
	Open Systems Interconnection Layer Service Definition
Conventions (see also ISO/TR\ 8509).
.LP
	X.216
	Presentation Service Definition for Open Systems
Interconnection for CCITT applications (see also ISO\ 8822).
.LP
	X.217
	Association Control Service Definition for CCITT
Applications (see also ISO\ 8649).
.LP
	X.218
	Reliable Transfer: Model and Service Definition (see also ISO\ 9066\(hy1).
.LP
	X.227
	Association Control Protocol Specification for CCITT
Applications (see also ISO\ 8650).
.LP
	X.228
	Reliable Transfer: Protocol Specification (see also
ISO\ 9066\(hy2).
.LP
	X.229
	Remote Operations: Protocol Specification (see also
ISO\ 9072\(hy2).
.sp 2P
.LP
\fB3\fR 	\fBDefinitions\fR 
.sp 1P
.RT
.sp 1P
.LP
3.1
	\fIReference Model Definitions\fR 
.sp 9p
.RT
.PP
This Recommendation is based on the concepts developed in
Recommendation\ X.200 and makes use of the following terms defined in
it:
.RT
.LP
	a)
	Application Layer;
.LP
	b)
	application\(hyprocess;
.LP
	c)
	application\(hyentity;
.LP
	d)
	application\(hyservice\(hyelement;
.bp
.LP
	e)
	application\(hyprotocol\(hydata\(hyunit;
.LP
	f
)
	application\(hyprotocol\(hycontrol\(hyinformation;
.LP
	g)
	Presentation Layer;
.LP
	h)
	presentation\(hyservice;
.LP
	i)
	presentation\(hyconnection;
.LP
	j
)
	session\(hyservice;
.LP
	k)
	session\(hyconnection;
.LP
	l)
	transfer syntax; and
.LP
	m)
	user\(hyelement.
.sp 1P
.LP
3.2
	\fIService Conventions Definitions\fR 
.sp 9p
.RT
.PP
This Recommendation makes use of the following terms defined in
Recommendation\ X.210:
.RT
.LP
	a)
	service\(hyprovider;
.LP
	b)
	service\(hyuser;
.LP
	c)
	confirmed service;
.LP
	d)
	non\(hyconfirmed service;
.LP
	e)
	provider\(hyinitiated service;
.LP
	f
)
	service\(hyprimitive; primitive;
.LP
	g)
	request (primitive);
.LP
	h)
	indication (primitive);
.LP
	i)
	response (primitive); and
.LP
	j
)
	confirm (primitive).
.sp 1P
.LP
3.3
	\fIPresentation Service Definitions\fR 
.sp 9p
.RT
.PP
This Recommendation makes use of the following terms defined in
Recommendation\ X.216.
.RT
.LP
	a)
	abstract syntax;
.LP
	b)
	abstract syntax name;
.LP
	c)
	transfer syntax name;
.LP
	d)
	presentation context.
.sp 1P
.LP
3.4
	\fIAssociation Control Definitions\fR 
.sp 9p
.RT
.PP
This Recommendation makes use of the following terms defined in
Recommendation\ X.217:
.RT
.LP
	a)
	application\(hyassociation; association;
.LP
	b)
	application context;
.LP
	c)
	Association Control Service Element;
.sp 1P
.LP
3.5
	\fIReliable Transfer Definitions\fR 
.sp 9p
.RT
.PP
This Recommendation makes use of the following terms defined in
Recommendation\ X.218:
.RT
.LP
	a)
	Reliable Transfer Service Element.
.sp 1P
.LP
3.6
	ROSE \fIDefinitions\fR 
.sp 9p
.RT
.PP
For the purpose of this Recommendation the following definitions
apply:
.RT
.sp 1P
.LP
3.6.1 
	 \fBassociation\(hyinitiating\(hyapplication\(hyentity;\fR \fBassociation\(hyinitiator\fR 
.sp 9p
.RT
.PP
The application\(hyentity that initiates the
application\(hyassociation.
.RT
.sp 1P
.LP
3.6.2
	 \fBassociation\(hyresponding\(hyapplication\(hyentity;\fR \fBassociation\(hyresponder\fR 
.sp 9p
.RT
.PP
The application\(hyentity that responds to the initiation of an
application\(hyassociation by another AE.
.RT
.sp 1P
.LP
3.6.3
	\fBinvoking\(hyapplication\(hyentity; invoker\fR 
.sp 9p
.RT
.PP
The application\(hyentity that invokes the Remote Operation.
.bp
.RT
.sp 1P
.LP
3.6.4
	\fBperforming\(hyapplication\(hyentity; performer\fR 
.sp 9p
.RT
.PP
The application\(hyentity that performs a Remote
Operation invoked by the other application\(hyentity.
.RT
.sp 1P
.LP
3.6.5
	\fBrequestor\fR 
.sp 9p
.RT
.PP
The part of an application\(hyentity that issues a request primitive for 
a particular ROSE service. 
.RT
.sp 1P
.LP
3.6.6
	\fBacceptor\fR 
.sp 9p
.RT
.PP
The part of an application\(hyentity that receives the indication
primitive for a particular ROSE service.
.RT
.sp 1P
.LP
3.6.7
	\fBlinked\(hyoperations\fR 
.sp 9p
.RT
.PP
A set of operations formed by one parent\(hyoperation and one or more child\(hyoperations. 
.RT
.sp 1P
.LP
3.6.8
	\fBparent\(hyoperation\fR 
.sp 9p
.RT
.PP
An operation during the execution of which the performer may
invoke linked child\(hyoperations to be performed by the invoker of the
parent\(hyoperation.
.RT
.sp 1P
.LP
3.6.9
	\fBchild\(hyoperation\fR 
.sp 9p
.RT
.PP
An operation which might be invoked by the performer of the linked parent\(hyoperation 
during the execution of the parent\(hyoperation, and which is 
performed by the invoker of the parent\(hyoperation.
.RT
.sp 1P
.LP
3.6.10
	\fBRemote Operations\fR 
.sp 9p
.RT
.LP
	1)
	A concept and notation supporting the
specification of interactive communication between application\(hyentities. 
This includes the Remote Operation Service Element and the mapping of the 
notation onto the service primitives of used application\(hyservice\(hyelements. 
.LP
	2)
	The set of bind\(hyoperations, unbind\(hyoperations and
operations.
.sp 1P
.LP
3.6.11
	\fBRO\(hynotation\fR 
.sp 9p
.RT
.PP
The notation used for the specification of Remote Operations,
defined in this Recommendation.
.RT
.sp 1P
.LP
3.6.12
	\fBACSE\(hyuser\fR 
.sp 9p
.RT
.PP
The application\(hyspecific function that performs the mapping of the bind\(hyoperation 
and unbind\(hyoperation of the RO\(hynotation onto ACSE. 
.RT
.sp 1P
.LP
3.6.13
	\fBRemote Operation Service Element\fR 
.sp 9p
.RT
.PP
The application\(hyservice\(hyelement defined in this
Recommendation.
.RT
.sp 1P
.LP
3.6.14
	\fBROSE\(hyprovider\fR 
.sp 9p
.RT
.PP
The provider of the Remote Operations Service Element
services.
.RT
.sp 1P
.LP
3.6.15
	\fBROSE\(hyuser\fR 
.sp 9p
.RT
.PP
The application\(hyspecific function that performs the mapping of the operations 
and errors of the RO\(hynotation onto ROSE. 
.RT
.sp 1P
.LP
3.6.16
	\fBRTSE\(hyuser\fR 
.sp 9p
.RT
.PP
The application\(hyspecific function that performs the mapping of the bind\(hyoperation 
and unbind\(hyoperation of the RO\(hynotation onto RTSE. 
.RT
.sp 1P
.LP
3.6.17
	\fBoperation\(hyinterface\fR 
.sp 9p
.RT
.PP
The interface within an application entity between the user
element
and the application service elements, defined as a set of application service 
element services (Remote Operations) available to the user element in 
RO\(hynotation.
.bp
.RT
.sp 2P
.LP
\fB4\fR 	\fBAbbreviations\fR 
.sp 1P
.RT
.LP
	AE
	application\(hyentity
.LP
	ACSE
	Association Control Service Element
.LP
	ASE
	application\(hyservice\(hyelement
.LP
	APDU
	application\(hyprotocol\(hydata\(hyunit
.LP
	OSI
	Open Systems Interconnection
.LP
	RO (or ROS)
	Remote Operations
.LP
	ROSE
	Remote Operations Service Element
.LP
	RT (or RTS)
	Reliable Transfer
.LP
	RTSE
	Reliable Transfer Service Element
.sp 2P
.LP
\fB5\fR 	\fBConventions\fR 
.sp 1P
.RT
.PP
This Recommendation defines services for the ROSE following the
descriptive conventions defined in Recommendation\ X.210. In \(sc\ 10, the
definition of each ROSE service includes a table that lists the parameters 
of its primitives. For a given primitive, the presence of each parameter 
is 
decribed by one of the following values:
.RT
.LP
	blank not applicable
.LP
	M
	mandatory
.LP
	U
	user option
.LP
	C
	conditional
.LP
	O
	presence is a ROSE service\(hyprovider option
.PP
In addition, the notation (=) indicates that a parameter value is semantically 
equal to the value to its left in the table. 
.sp 2P
.LP
\fB6\fR 	\fBRemote Operations Model\fR 
.sp 1P
.RT
.PP
In the OSI environment, communication between application processes is 
represented in terms of communication between a pair of application entities 
(AEs) using the presentation service. Communication between some 
application\(hyentities are inherently interactive. Typically, one entity 
requests that a particular operation be performed; the other entity attempts 
to perform the operation and then report the outcome of the attempt. This 
Section 
introduces the concept of Remote Operations as a vehicle for supporting
interactive applications.
.PP
The generic structure of an operation is an elementary request/reply interaction. 
Operations are carried out within the context of an 
application\(hyassociation.
.PP
Figure\ 1/X.219 models this view.
.RT
.LP
.rs
.sp 15P
.ad r
\fBFigure 1/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.PP
Operations invoked by one AE (the invoker) are performed by the
other AE (the performer). Operations may be classified according to whether 
the performer of an operation is expected to report its outcome: 
.LP
	\(em
	 in case of success or failure (a result reply is returned if the operation 
is successful, an error reply is returned if the operation is 
unsuccessful);
.LP
	\(em
	in case of failure only (no reply is returned if the
operation is successful, an error reply is returned if the operation is
unsuccessful);
.LP
	\(em
	in case of success only (a result reply is returned if the
operation is successful, no reply is returned if the operation is
unsuccessful);
.LP
	\(em
	or not at all (neither a result nor an error reply is
returned, whether the operation was successful or not).
.PP
Operations may also be classified according to two possible
operation modes: synchronous, in which the invoker requires a reply from the
performer before invoking another operation; an asynchronous, in which the
invoker may continue to invoke further operations without awaiting a reply.
.PP
The following Operation Classes are defined:
.RT
.LP
	Operation Class 1:
	Synchronous, reporting success or failure
(result or error).
.LP
	Operation Class 2:
	Asynchronous, reporting success or failure   (result or error).
.LP
	Operation Class 3:
	Asynchronous, reporting failure (error)
only, if any.
.LP
	Operation Class 4:
	Asynchronous, reporting success (result)
only.
.LP
	Operation Class 5:
	Asynchronous, outcome not reported.
.PP
The Operation Class of each operation has to be agreed between
application entities (e.g.\ in an Application Protocol Recommendation).
.PP
In some cases it is useful to group operations into a set of
linked\(hyoperations which is formed by one parent\(hyoperation and one or more
child\(hyoperations. The performer of the parent\(hyoperation may invoke 
none, one, or more child\(hyoperations during the execution of the parent\(hyoperation. 
The 
invoker of the parent\(hyoperation is the performer of the child\(hyoperations. 
A 
child\(hyoperation may be a parent\(hyoperation of another set of linked\(hyoperations 
in a recursive manner. Figure\ 2/X.219 models this concept. 
.RT
.LP
.rs
.sp 20P
.ad r
\fBFigure 2/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.PP
An application\(hyassociation defines the relationship between a pair of 
AEs, and is formed by the exchange of 
application\(hyprotocol\(hycontrol\(hyinformation through the use of
presentation\(hyservices.
The AE that initiates an application\(hyassociation is called the
association\(hyinitiating AE, or the association\(hyinitiator, while the 
AE that 
responds to the initiation of an application\(hyassociation by another AE is
called the association\(hyresponding AE, or the association\(hyresponder. 
Only the 
association\(hyinitiating AE may release an established application\(hyassociation. 
.bp
.PP
Application\(hyassociations are classified by which application\(hyentity 
is allowed to invoke operations: 
.RT
.LP
	Association\ Class\ 1:
	Only the association\(hyinitiating
application entity can invoke operations.
.LP
	Association\ Class\ 2:
	Only the association\(hyresponding
application entity can invoke operations.
.LP
	Association\ Class\ 3:
	Both the association\(hyinitiating and the
association\(hyresponding application entities can invoke operations.
.PP
Linked\(hyoperations require Association Class 3.
.PP
The Association Class has to be agreed between application\(hyentities
(e.g.\ in an Application Protocol Recommendation).
.PP
The functionality of an AE is factored into one user\(hyelement and a set 
of application\(hyservice\(hyelements (ASEs). Each ASE may itself be factored 
into a set of (more primitive) ASEs. The interaction between AEs is described 
in terms of their use of ASEs. 
.PP
The specific combination of a user\(hyelement and the set of ASEs which 
comprise an AE defines the application\(hycontext. 
.PP
Figure 3/X.219 illustrates an example of an application\(hycontext
involving the Remote Operations Service Element (ROSE). Note that this 
figure is not meant to imply that the application is symmetric. Interactive 
applications are often inherently asymmetric, that is, either one or both 
AEs may be permitted to invoke operations, and the operations that either 
AE may 
invoke may be different. The rules governing which AE may invoke operations,
and which operations an AE may invoke, is defined using the RO\(hynotation 
in an Application Protocol Recommendation, and determines the application\(hycontext. 
.PP
The set of ASEs available to the user element of the AE at the
operation\(hyinterface is defined using the Remote Operations (RO\(hy) 
Notation. The RO\(hynotation is based on the macro concept defined in Recommendation\ 
X.208. The complexity of a particular set of ASEs is dependent upon the 
needs of the 
application, and is not limited by the Remote Operations concept.
.PP
An important characteristic of Remote Operations is that they provide applications 
with independence from OSI communication services. Since the 
notation is based on established object\(hyoriented programming principles,
automatic tools can be developed to bind Remote Operations into the execution 
environment of applications. 
.PP
The ASEs available to the user\(hyelement require communication over an 
application\(hyassociation. The control of that application\(hyassociation 
(establishment, release, abort) is performed either by the Association 
Control Service Element (ACSE) defined in Recommendation\ X.217, or the 
Reliable 
Transfer Service Element defined in Recommendation\ X.218 and the Association
Control Service Element (ACSE). Communication over the application\(hyassociation 
is performed by the Remote Operations Service Element (ROSE) defined in 
this 
Recommendation.
.PP
An application\(hyspecific function performs the mapping of the
operations available to the user\(hyelement onto either the ACSE services, 
or the RTSE services; and the ROSE services. The mapping is defined in 
this 
Recommendation. The function that performs the mapping of the operations 
onto the ACSE services, or the RTSE services, and the ROSE services is 
said to be 
the user of ACSE, RTSE and ROSE, or the ACSE\(hyuser, the RTSE\(hyuser, and the
ROSE\(hyuser.
.PP
If the RTSE is included in the application\(hycontext, the mapping
function is an RTSE\(hyuser and a ROSE\(hyuser, the ROSE is an RTSE\(hyuser, 
the RTSE is an ACSE\(hyuser and a presentation service\(hyuser, and the 
ACSE is a presentation 
service\(hyuser.
.PP
If the RTSE is excluded from the application\(hycontext, the mapping
function is an ACSE\(hyuser and a ROSE\(hyuser, the ROSE is a presentation
service\(hyuser, and the ACSE is a presentation service\(hyuser.
.RT
.sp 2P
.LP
\fB7\fR 	\fBOverview of Notation and Service\fR 
.sp 1P
.RT
.sp 1P
.LP
7.1
	\fINotation Overview\fR 
.sp 9p
.RT
.PP
This Recommendation defines the RO\(hynotation for the specification of 
an application\(hycontext and the related abstract syntax component of 
the 
presentation context.
.PP
The functionality of an application\(hycontext is provided to the
user\(hyelement by means of Remote Operations and errors which form the
operation\(hyinterface.
.bp
.RT
.LP
.rs
.sp 20P
.ad r
\fBFigure 3/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.PP
The following types of Remote Operations form an operation
interface:
.RT
.LP
	\(em
	a bind\(hyoperation to establish an application\(hyassociation
.LP
	\(em
	 a set of operations and, for each operation, a list of error (negative 
reply) situations 
.LP
	\(em
	an unbind\(hyoperation to release an
application\(hyassociation.
.PP
The abstract syntax notation of Recommendation\ X.208 is used for the definition 
of the following macros: 
.LP
	a)
	BIND;
.LP
	b)
	UNBIND;
.LP
	c)
	OPERATION; and
.LP
	d)
	ERROR.
.PP
These macros provide both a type notation and a value notation for Remote 
Operations and errors. 
.PP
The type notation of the BIND macro enables the specification for a
bind\(hyoperation type and the types for user data values (if any) to be 
exchanged in the establishment phase of an application\(hyassocation. The 
value notation of the BIND macro enables the specification of user data 
values (if any) to be 
exchanged in the establishment phase of an application\(hyassociation.
.PP
The type notation of the UNBIND macro enables the specification of an unbind\(hyoperation 
type and types for user data values (if any) to be exchanged in the release 
phase of an application association. The value notation of the UNBIND macro 
enables the specification of user data values (if any) to be 
exchanged in the release phase of an application\(hyassociation.
.PP
The type notation of the OPERATION macro enables the specification of an 
operation and user data types to be exchanged for a request and a positive 
reply. In addition, the type notation enables the specification of a list 
of 
valid negative reply situations. If the operation is a parent\(hyoperation, the
type notation enables the specification of the list of linked child\(hyoperations. 
The value notation of the OPERATION macro enables the specification of 
the 
identifier of an operation.
.PP
The type notation of the ERROR macro enables the specification of user 
data types to be exchanged in a negative reply situation. The value notation 
of the ERROR macro enables the specification of the identifier of an error. 
.PP
Additional macros supporting the notation for the specification of
application\(hyservice\(hyelements and application context are defined in
Annex\ A.
.bp
.RT
.sp 1P
.LP
7.2
	\fIService Overview\fR 
.sp 9p
.RT
.PP
This Recommendation defines the following ROSE services:
.RT
.LP
	a)
	RO\(hyINVOKE
.LP
	b)
	RO\(hyRESULT
.LP
	c)
	RO\(hyERROR
.LP
	d)
	RO\(hyREJECT\(hyU
.LP
	e)
	RO\(hyREJECT\(hyP
.PP
The RO\(hyINVOKE service enables an invoking AE to request an
operation to be performed by the performing AE.
.PP
The RO\(hyRESULT service enables the performing AE to return the positive 
reply of a successfully performed operation to the invoking AE. 
.PP
The RO\(hyERROR service enables the performing AE to return the negative 
reply of an unsuccessfully performed operation to the invoking AE. 
.PP
The RO\(hyREJECT\(hyU service enables one AE to reject the request or reply 
of the other AE if the ROSE\(hyuser has detected a problem. 
.PP
The RO\(hyREJECT\(hyP service enables the ROSE\(hyuser to be informed about 
a problem detected by the ROSE\(hyprovider. 
.RT
.sp 1P
.LP
7.3
	\fIMapping of Notation onto Services\fR 
.sp 9p
.RT
.PP
Note that the function that performs the mapping of the OPERATION macros 
and ERROR macros of the RO\(hynotation onto ROSE services is said to be 
the ROSE\(hyuser. While the function that performs the mapping of the BIND 
and UNBIND macros of the RO\(hynotation onto ACSE services or RTSE services 
respectively is said to be the ACSE\(hyuser or RTSE\(hyuser respectively. 
.PP
The specification of the mapping of the RO\(hynotation onto the used
services of ACSE, RTSE, and ROSE is given in \(sc\ 11. Therefore Recommendations 
using the RO\(hynotation for the protocol specification need not specify the
mapping onto these used services.
.RT
.sp 2P
.LP
\fB8\fR 	\fBRelationship with other ASEs and Lower Layer Services\fR 
.sp 1P
.RT
.sp 1P
.LP
8.1
	\fIOther Application Service Elements\fR 
.sp 9p
.RT
.PP
The ROSE is intended to be used with other ASEs in order to support specific 
interactive information processing tasks. Therefore it is expected 
that the ROSE will be included in a large number of application\(hycontext
specifications.
.PP
The collection of the ROSE and other ASEs included in an application context 
are required to use the facilities of the presentation\(hyservice in a 
co\(hyordinated manner among themselves.
.PP
The ROSE requires an existing application\(hyassociation controlled by
ACSE.
.PP
For some application context specifications a Reliable Transfer
Service Element (RTSE) is included.
.PP
A ROSE\(hyuser protocol specification uses the RO\(hynotation. It defines
one or more abstract syntaxes and provides unique abstract syntax names 
of type object identifier for each abstract syntax. 
.PP
If a named abstract syntax specifies operations and errors, the ROSE APDUs 
defined in Recommendation\ X.229 are included in that named abstract 
syntax. If multiple named abstract syntaxes are defined for operations and
errors, the ROSE APDUs are included in each named abstract syntax.
.PP
If a named abstract syntax specifies a bind\(hyoperation, the APDUs
specified by the value notation of the BIND macro are included in that named
abstract syntax. If the RTSE is included in the application context, the 
APDUs for the bind\(hyoperation share a single named abstract syntax with 
the RTSE APDUs defined in Recommendation\ X.228. 
.bp
.PP
If a named abstract syntax specifies an unbind\(hyoperation, the APDUs
specified by the value notation of the UNBIND macro are included in that 
named abstract syntax. 
.PP
The APDUs resulting from the specification of a bind\(hyoperation, an
unbind\(hyoperation, operations and errors and the RTSE APDUs may share 
a single named abstract syntax. 
.RT
.sp 1P
.LP
8.2
	\fIPresentation\(hyService\fR 
.sp 9p
.RT
.PP
If an application context including RTSE and ROSE is defined, ROSE services 
do not use the presentation\(hyservice. 
.PP
If an application context including ROSE but excluding RTSE is
defined, the ROSE services require access to the P\(hyDATA service and 
require the use of the duplex functional unit of the presentation\(hyservice. 
The ROSE 
services neither use, nor constrain the use of, any other presentation
service.
.PP
A named abstract syntax associated with a compatible transfer syntax (negotiated 
by the Presentation Layer) constitutes a presentation context. 
.PP
The object identifier value 
{joint\(hyiso\(hyccitt ans1(1)
basic\(hyencoding(1)}
specified in Recommendation\ X.209 may be used as a
transfer syntax name. In this case the ROSE\(hyuser protocol specification need
not name nor specify a transfer syntax.
.RT
.sp 2P
.LP
\fB9\fR 	\fBRemote Operations Notation\fR 
.sp 1P
.RT
.sp 1P
.LP
9.1
	\fIGeneral\fR 
.sp 9p
.RT
.PP
The notation used in this Recommendation is defined as
follows:
.RT
.LP
	\(em
	the data syntax notation and macro notation are defined in
Recommendation\ X.208;
.LP
	\(em
	the Remote Operation macros are defined in \(sc\ 9.2 of
this Recommendation.
.PP
A bind\(hyoperation defines where an object binding (establishment of an 
application\(hyassociation) begins. If such a binding is established, 
operations may be invoked. An unbind\(hyoperation defines where an object 
binding is released. 
.PP
An interactive protocol is specified using the Remote Operation and
error data types. This section defines those types. It also explains the
notational definitions of a particular Remote operation, and of the particular 
errors it can report. The notation is defined by means of the macro facility 
defined in Recommendation\ X.208. This macro definition allows a generalized
specification of the mapping onto various execution environments.
.PP
The macros enabling the specification of bind\(hyoperations,
unbind\(hyoperations, operations and errors are listed in Figure\ 4/X.219.
.RT
.sp 1P
.LP
9.2
	\fISpecification of Bind\(hyoperations\fR 
.sp 9p
.RT
.PP
A single data value, the argument of the bind\(hyoperation, may
accompany the request to establish the application\(hyassociation. Some
bind\(hyoperations report their outcome, whether success (i.e.\ the normal
outcome) or failure (i.e.\ the exceptional outcome). Other bind\(hyoperations
report their outcome only if they fail, and still others never at all. 
A single data value, the result of the bind\(hyoperation, may accompany 
the positive 
response. A single data value, the bind\(hyerror of the bind\(hyoperation, may
accompany the negative response.
.PP
The notation for a bind\(hyoperation type is the keyworkd 
BIND
,   optionally followed by the keyword 
ARGUMENT
and the type of the
bind\(hyoperation's argument, the reference name optionally assigned to it, and
the nature of the operation's outcome reporting (if any). If the bind\(hyoperation 
reports success, the keyword 
RESULT
and the type of its result and the reference name optionally assigned to 
it are specified. If the bind\(hyoperation reports failure, the keyword 
BIND\(hyERROR
and the type of the
error\(hyinformation it reports and the reference name optionally assigned 
to it are specified. 
.PP
The value notation for a bind\(hyoperation is either an argument value, 
or a result value or an error value. The value notation for an argument 
value (if any) is the keyword 
ARGUMENT
followed by a value of the argument
type. The value notation for a result value (if any) is the keyword
RESULT
followed by a value of the result type. The value notation for an error 
value (if any) is the keyword 
ERROR
followed by a value of the error type.
.bp
.RT
.LP
.rs
.sp 47P
.ad r
\fBFigure 4/X.219 (feuillet 1 sur 3) [T1.219], p.4 (traiter comme tableau
MEP)\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.LP
.rs
.sp 47P
.ad r
\fBFigure 4/X.219 (feuillet 2 sur 3) [T2.219], p.5 (traiter comme tableau
MEP)\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.LP
.rs
.sp 47P
.ad r
\fBFigure 4/X.219 (feuillet 3 sur 3) [T3.219], p.6 (traiter comme tableau
MEP)\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.sp 1P
.LP
9.3
	\fISpecifications of Unbind\(hyoperations\fR 
.sp 9p
.RT
.PP
A single data value, the argument of the unbind\(hyoperation, may
accompany the request to release the application\(hyassociation. Some
unbind\(hyoperations report their outcome, whether success (i.e.\ the normal
outcome) or failure (i.e.\ the exceptional outcome). Other unbind\(hyoperations
report their outcome only if they fail, and still others never at all. 
A single data value, the result of the unbind\(hyoperation, or a single 
data value, the 
unbind\(hyerror of the unbind\(hyoperation, may accompany the response.
.PP
The notation for an unbind\(hyoperation type is the keyword
UNBIND
, optionally followed by the keyword 
ARGUMENT
and the
type of the unbind\(hyoperation's argument, the reference name optionally 
assigned to it, and the nature of the unbind\(hyoperation's outcome reporting 
(if any). If the unbind\(hyoperation reports success, the keyword 
RESULT
and the type of its result and the reference name optionally assigned to 
it are specified. If the Unbind\(hyoperation reports failure, the keyword 
UNBIND\(hyERROR
and the type of the error\(hyinformation it reports and the reference name 
optionally assigned to it are specified. 
.PP
The value notation for an unbind\(hyoperation is either an argument
value, or a result value or an error value. The value notation for an argument 
value (if any) is the keyword 
ARGUMENT
followed by a value of the
argument type. The value notation for a result value (if any) is the keyword
RESULT
followed by a value of the result type. The value notation for an error 
value (if any) is the keyword 
ERROR
followed by a value of the error type.
.RT
.sp 1P
.LP
9.4
	\fISpecification of Operations\fR 
.sp 9p
.RT
.PP
A data value of type operation represents the identifier for an
operation that a ROSE\(hyuser in one open system may request to be performed 
by a peer ROSE\(hyuser in another open system. A single data value, the 
argument of the operation, may accompany the request. Some operations report 
their outcome, 
whether success (i.e.\ the normal outcome) or failure (i.e.\ the exceptional
outcome). Other operations report their outcome only if they fail, and still
others never at all. A single data value, the result of the operation,
accompanies a report of succes; a report of failure identifies the exceptional 
condition that was encountered. 
.PP
The notation for an operation type is the keyword 
OPERATION
,   optionally followed by the keyword 
ARGUMENT
and the type of the
operation's argument, the reference name optionally assigned to it, and the
nature of the operation's outcome reporting (if any). If the operation 
reports success, the keyword 
RESULT
and optionally the type of its result and
.PP
the reference name optionally assigned to it are specified. If the operation
reports failure, the keyword 
ERRORS
and the reference names of the
error values or error types it reports are specified. If the operation 
is the parent\(hyoperation of a set of linked\(hyoperations, the keyword 
LINKED\(hyOPERATIONS
and the reference names of the linked child\(hyoperation values or child\(hyoperation 
types are specified. The reference to error values or child\(hyoperation 
values is preferred, however, the references to types shall be used if 
the values are defined elsewhere (see \(sc\ 9.6). 
.PP
The notation for an operation value is the operation's identifier. If a 
locally unique identifier (local value) is sufficient, the identifier is 
of type 
INTEGER
. If a globally unique identifier (global value) is
required to allow the unique identification of operations used in several
abstract syntaxes, the identifier is of type 
OBJECT IDENTIFIER
.
.PP
Child\(hyoperations and errors referenced by a specific operation shall 
share a single named abstract syntax (see sub\(hy \(sc\ 8.1) with that 
operation, if the child\(hyoperations or errors are identified by local 
values. The use of 
global values is not restricted.
.RT
.sp 1P
.LP
9.5
	\fISpecification of Errors\fR 
.sp 9p
.RT
.PP
A data value of type error represents the identifier for an
exception condition that a ROSE\(hyuser in one open system may report to a peer
ROSE\(hyuser in another open system, where the exception condition is reporting 
an exceptional outcome of a previously requested operation. A single data 
value, the parameter of the error, may accompany the report. 
.PP
The notation for an error type is the keyword 
ERROR
,
optionally followed by the keyword 
PARAMETER
and the type of the
error's parameter and the reference name optionally assigned to it.
.PP
The notation for an error value is the error's identifier. If a
locally unique identifier (local value) is sufficient, the identifier is of
type 
INTEGER
. If a globally unique identifier (global value) is
required to allow the unique identification of errors used in several abstract 
syntaxes, the identifier is of type 
OBJECT IDENTIFIER
.
.bp
.RT
.sp 1P
.LP
9.6
	\fIExport and Import of Operations and Errors\fR 
.sp 9p
.RT
.PP
Operation values and error values have to be unique within a named abstract 
syntax. If operations and errors are specified in several ASN.1 
modules and are imported to a module specifying a specific named abstract
syntax, one of the following rules apply:
.RT
.LP
	1)
	If local values are used and exported, it is in the
responsibility of the designer of the importing module to ensure uniqueness.
.LP
	2)
	A module may specify and export operation types and error
types. The operation values and error values are assigned in the module
importing the types. A single value shall be assigned for each operation 
type or error type. 
.LP
	3)
	If global values are assigned and exported, uniqueness is
ensured.
.PP
However different named abstract syntaxes might be used for
conflicting local values.
.sp 2P
.LP
\fB10\fR 	\fBService Definition\fR 
.sp 1P
.RT
.PP
The ROSE services are listed in Table\ 1/X.219.
.RT
.ce
\fBH.T. [T4.219]\fR 
.ce
TABLE\ 1/X.219
.ce
\fBROSE Services\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(66p) .
Service	Type
_
.T&
lw(90p) | lw(66p) .
RO\(hyINVOKE	Non\(hyconfirmed
.T&
lw(90p) | lw(66p) .
RO\(hyRESULT	Non\(hyconfirmed
.T&
lw(90p) | lw(66p) .
RO\(hyERROR	Non\(hyconfirmed
.T&
lw(90p) | lw(66p) .
RO\(hyREJECT\(hyU	Non\(hyconfirmed
.T&
lw(90p) | lw(66p) .
RO\(hyREJECT\(hyP	Provider\(hyinitiated
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 1/X.219 [T4.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.PP
Identification of the named abstract syntax in use is assumed for all ROSE 
services, however this is a local matter and outside the scope of this 
Recommendation. 
.sp 1P
.LP
10.1
	\fIRO\(hyINVOKE Service\fR 
.sp 9p
.RT
.PP
The RO\(hyINVOKE service is used by one ROSE\(hyuser (the invoker) to
cause the invocation of an OPERATION to be performed by the other ROSE\(hyuser
(the performer). This service is a non\(hyconfirmed service.
.PP
The related service structure consists of two service\(hyprimitives, as 
illustrated in Figure\ 5/X.219. 
.RT
.LP
.rs
.sp 12P
.ad r
\fBFigure 5/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.sp 1P
.LP
10.1.1
	\fIRO\(hyINVOKE Parameters\fR 
.sp 9p
.RT
.PP
Table 2/X.219 lists the RO\(hyINVOKE service parameters.
.RT
.ce
\fBH.T. [T5.219]\fR 
.ce
TABLE\ 2/X.219
.ce
\fBRO\(hyINVOKE Parameters\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(36p) | cw(42p) .
Parameter name	Request	Indication
_
.T&
lw(90p) | cw(36p) | cw(42p) .
Operation\(hyvalue	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Operation\(hyclass	U	
.T&
lw(90p) | cw(36p) | cw(42p) .
Argument	U	C\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Invoke\(hyID	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Linked\(hyID	U	C\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Priority	U	
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 2/X.219 [T5.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
10.1.1.1\ \ \fIOperation\(hyvalue\fR 
.sp 9p
.RT
.PP
This parameter is the identifier of the operation to be invoked.
The value has to be agreed between the ROSE\(hyusers. This parameter has to be
supplied by the requestor of the service.
.RT
.sp 1P
.LP
10.1.1.2\ \ \fIOperation Class\fR 
.sp 9p
.RT
.PP
This parameter defines whether a synchronous or an asynchronous
reply is expected and the nature of the expected reply, i.e.\ result and/or
error or non (see \(sc\ 6). This parameter has to be supplied by the requestor 
of the service. This parameter is used solely to optimize the turn management 
(see \(sc\ 8.1.1 of Recommendation\ X.229). 
.RT
.sp 1P
.LP
10.1.1.3\ \ \fIArgument\fR 
.sp 9p
.RT
.PP
This parameter is the argument of the invoked operation. The type has to 
be agreed between the ROSE\(hyusers. This parameter has to be supplied 
by the requestor of the service. 
.RT
.sp 1P
.LP
10.1.1.4\ \ \fIInvoke\(hyID\fR 
.sp 9p
.RT
.PP
This parameter identifies the request of a RO\(hyINVOKE service and is 
used to correlate this request with the corresponding replies (RO\(hyRESULT, 
RO\(hyERROR, RO\(hyREJECT\(hyU, and RO\(hyREJECT\(hyP services) or the 
invocation of linked 
child\(hyoperations (RO\(hyINVOKE). This paramter has to be supplied by 
the requestor of the service. 
.PP
This parameter distinguishes several requests of the service the
requestor may have in progress (asynchronous operations). The requestor may
begin to reuse Invoke\(hyID values whenever it chooses, subject to the 
constraint that it may not reuse an Invoke\(hyID value that was previously 
assigned to a 
request
of the service for which it expects, but has not yet received, a reply 
or the invocation of a linked child\(hyoperation. 
.PP
The ROSE\(hyuser to which an RO\(hyINVOKE indication is issued, assumes 
that an Invoke\(hyID value violating the above rule is a duplicate; and 
therefore, it does not perform the invoked operation. Instead, it rejects 
the duplicate 
invocation.
.PP
If Operation Classes 3, 4 or 5 are used, the requestor of this service 
may reuse an Invoke\(hyID value after a reasonably long period of time, 
or if the reply is carried by other means (e.g.\ result of a have\(hyyou\(hyfinished 
operation).
.PP
In some application contexts peer ROSE\(hyusers may communicate Invoke\(hyID 
values. To support this the type of the Invoke\(hyID parameter is exported 
by the module defining 
the abstract syntax of Remote Operations in \(sc\ 9 of Recommendation\ X.229.
.RT
.sp 1P
.LP
10.1.1.5\ \ \fILinked\(hyID\fR 
.sp 9p
.RT
.PP
If this parameter is present, the invoked operation is a
child\(hyoperatin and the parameter identifies the invocation of the linked
parent\(hyoperation. This parameter has to be supplied by the requestor of the
service. The value is that of the Invoke\(hyID parameter of the RO\(hyINVOKE
indication primitive of the parent\(hyoperation.
.bp
.RT
.sp 1P
.LP
10.1.1.6\ \ \fIPriority\fR 
.sp 9p
.RT
.PP
This parameter defines the priority assigned to the transfer of the corresponding 
APDU with respect to the other APDUs to be exchanged between the AEs. The 
lower the value, the higher the priority. If several APDUs with the 
same priority are awaiting transfer, they are transferred \*Qfirst in, first
out\*U.
.PP
\fINote 1\fR \ \(em\ The Priority parameter has an effect in the case of a
two\(hyway alternate association in that it prioritizes the sending of 
APDUs, and may be used to determine when to request the Turn to send APDUs. 
The Priority parameter may also have a local effect in the case of a two\(hyway 
simultaneous 
association.
.PP
\fINote 2\fR \ \(em\ The Priority of a reply (RO\(hyRESULT, RO\(hyERROR, and
RO\(hyREJECT\(hyU) should normally be higher (lower in value) than the 
priority of 
the corresponding invocation.
.RT
.sp 1P
.LP
10.2
	\fIRO\(hyRESULT service\fR 
.sp 9p
.RT
.PP
The RO\(hyRESULT service is used by a ROSE\(hyuser to reply to a previous 
RO\(hyINVOKE indication in the case of a successfully performed operation. 
This 
service is a non\(hyconfirmed service.
.PP
The related service structure consists of two service\(hyprimitives, as 
illustrated in Figure\ 6/X.219. 
.RT
.LP
.rs
.sp 15P
.ad r
\fBFigure 6/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
10.2.1
	\fIRO\(hyRESULT Parameters\fR 
.sp 9p
.RT
.PP
Table 3/X.219 lists the RO\(hyRESULT service parameters.
.RT
.LP
.sp 2
.ce
\fBH.T. [T6.219]\fR 
.ce
TABLE\ 3/X.219
.ce
\fBRO\(hyRESULT Parameters\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(36p) | cw(42p) .
Parameter name	Request	Indication
_
.T&
lw(90p) | cw(36p) | cw(42p) .
Operation\(hyvalue	U	C\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Result	U	C\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Invoke\(hyID	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Priority	U	
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 3/X.219 [T6.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.sp 1P
.LP
10.2.1.1\ \ \fIOperation\(hyvalue\fR 
.sp 9p
.RT
.PP
This parameter is the identifier of an invoked and successfully
performed operation. This parameter has to be supplied by the requestor 
of the service. The value is that of the corresponding RO\(hyINVOKE indication 
primitive. This parameter shall be present only if the Result parameter 
is present. 
.RT
.sp 1P
.LP
10.2.1.2\ \ \fIResult\fR 
.sp 9p
.RT
.PP
This parameter is the result of an invoked and successfully
performed operation. The type has to be agreed between the ROSE users. This
parameter has to be supplied by the requestor of the service.
.RT
.sp 1P
.LP
10.2.1.3\ \ \fIInvoke\(hyID\fR 
.sp 9p
.RT
.PP
This parameter identifies the corresponding invocation (see
\(sc\ 10.1.1.4). This parameter has to be supplied by the requestor of 
the service. The value is that of the corresponding RO\(hyINVOKE indication 
primitive. 
.RT
.sp 1P
.LP
10.2.1.4\ \ \fIPriority\fR 
.sp 9p
.RT
.PP
This parameter defines the priority assigned to the transfer of the corresponding 
APDU (see \(sc\ 10.1.1.6). 
.RT
.sp 1P
.LP
10.3
	\fIRO\(hyERROR service\fR 
.sp 9p
.RT
.PP
The RO\(hyERROR service is used by a ROSE\(hyuser to reply to a previous 
RO\(hyINVOKE indication in the case of an unsuccessfully performed operation. 
This service is a non\(hyconfirmed service. 
.PP
The related service structure consists of two service\(hyprimitives as
illustrated in Figure\ 7/X.219.
.RT
.LP
.rs
.sp 12P
.ad r
\fBFigure 7/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
10.3.1
	\fIRO\(hyERROR Parameters\fR 
.sp 9p
.RT
.PP
Table 4/X.219 lists the RO\(hyERROR service parameters.
.RT
.ce
\fBH.T. [T7.219]\fR 
.ce
TABLE\ 4/X.219
.ce
\fBRO\(hyERROR Parameters\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(36p) | cw(42p) .
Parameter name	Request	Indication
_
.T&
lw(90p) | cw(36p) | cw(42p) .
Error\(hyvalue	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Error\(hyparameter	U	C\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Invoke\(hyID	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Priority	U	
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 4/X.219 [T7.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.sp 1P
.LP
10.3.1.1\ \ \fIError\(hyvalue\fR 
.sp 9p
.RT
.PP
This parameter identifies the error that occurred during the
execution of the operation. The value has to be agreed between the ROSE\(hyusers. 
This parameter has to be supplied by the requestor of the service. 
.RT
.sp 1P
.LP
10.3.1.2\ \ \fIError\(hyparameter\fR 
.sp 9p
.RT
.PP
This parameter provides additional information about the error. The type 
(if any) has to be agreed between the ROSE\(hyusers. This parameter has 
to be supplied by the requestor of the service. 
.RT
.sp 1P
.LP
10.3.1.3\ \ \fIInvoke\(hyID\fR 
.sp 9p
.RT
.PP
This parameter identifies the corresponding invocation (see
\(sc\ 10.1.1.4). This parameter has to be supplied by the requestor of 
the service. The value is that of the corresponding RO\(hyINVOKE indication 
primitive. 
.RT
.sp 1P
.LP
10.3.1.4\ \ \fIPriority\fR 
.sp 9p
.RT
.PP
This parameter defines the priority assigned to the transfer of the corresponding 
APDU (see \(sc\ 10.1.1.6). 
.RT
.sp 1P
.LP
10.4
	\fIRO\(hyREJECT\(hyU\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyU service is used by a ROSE\(hyuser to reject a request 
(RO\(hyINVOKE indication) of the other ROSE\(hyuser if it has detected 
a problem. The RO\(hyREJECT\(hyU service may also be used by a ROSE\(hyuser 
to reject a reply 
(RO\(hyRESULT indication, RO\(hyERROR indication) from the other ROSE\(hyuser. 
However, to avoid violating the sequencing rules of other ASEs in some 
application 
contexts, a ROSE\(hyuser may choose not to use the RO\(hyREJECT\(hyU service 
to reject replies. This service is a non\(hyconfirmed service. 
.PP
The related service structure consists of two service\(hyprimitives, as 
illustrated in Figure\ 8/X.219. 
.RT
.LP
.rs
.sp 12P
.ad r
\fBFigure 8/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
10.4.1
	\fIRO\(hyREJECT\(hyU Parameters\fR 
.sp 9p
.RT
.PP
Table\ 5/X.219 lists the RO\(hyREJECT\(hyU service parameters.
.RT
.ce
\fBH.T. [T8.219]\fR 
.ce
TABLE\ 5/X.219
.ce
\fBRO\(hyREJECT\(hyU Parameters\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(36p) | cw(42p) .
Parameter name	Request	Indication
_
.T&
lw(90p) | cw(36p) | cw(42p) .
Reject\(hyreason	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Invoke\(hyID	M	M\|(=)
.T&
lw(90p) | cw(36p) | cw(42p) .
Priority	U	
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 5/X.219 [T8.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.LP
.bp
.sp 1P
.LP
10.4.1.1\ \ \fIReject\(hyreason\fR 
.sp 9p
.RT
.PP
This parameter specifies the reason for rejection as
follows:
.RT
.LP
	a)
	\fIInvoke\(hyproblem:\fR \| user\(hyreject of an RO\(hyINVOKE indication
primitive with values:
.LP
	\(em
	duplication\(hyinvocation
.LP
\ \ \ signifies that the Invoke\(hyID parameter violates the assignment 
rules of 
\(sc\ 10.1.1.4.
.LP
	\(em
	unrecognized\(hyoperation:
.LP
\ \ \ signifies that the operation is not one of those agreed between the
ROSE\(hyusers
.LP
	\(em
	mistyped\(hyargument:
.LP
\ \ \ signifies that the type of the operation argument supplied is not that
agreed between the ROSE\(hyusers
.LP
	\(em
	resource\(hylimitation:
.LP
\ \ \ the performing ROSE\(hyuser is not able to perform the invoked operation 
due to resource limitation 
.LP
	\(em
	initiator\(hyreleasing:
.LP
\ \ \ the association\(hyinitiator is not willing to perform the invoked 
operation 
because it is about to attempt to release the application\(hyassociation
.LP
	\(em
	unrecognized\(hylinked\(hyID
.LP
\ \ \ signifies that there is no operation in progress with an Invoke\(hyID 
equal to the specified Linked\(hyID 
.LP
	\(em
	linked\(hyresponse\(hyunexpected
.LP
\ \ \ signifies that the invoked operation referred to by the Linked\(hyID 
is not a parent\(hyoperation 
.LP
	\(em
	unexpected\(hychild\(hyoperation
.LP
\ \ \ signifies that the invoked child\(hyoperation is not one that the invoked
parent\(hyoperation referred to by the Linked\(hyID allows.
.LP
	b)
	\fIReturn\(hyresult\(hyproblem:\fR \| user\(hyreject of an RO\(hyRESULT
indication primitive with values:
.LP
	\(em
	unrecognized\(hyinvocation:
.LP
\ \ \ signifies that no operation with the specified Invoke\(hyID is in 
progress 
.LP
	\(em
	result\(hyresponse\(hyunexpected:
.LP
\ \ \ signifies that the invoked operation does not report a result
.LP
	\(em
	mistyped\(hyresult:
.LP
\ \ \ signifies that the type of the Result parameter supplied is not that 
agreed between the ROSE\(hyusers. 
.LP
	c)
	\fIReturn\(hyerror\(hyproblem:\fR \| user\(hyreject of an RO\(hyERROR
indication primitive with values:
.LP
	\(em
	unrecognized\(hyinvocation:
.LP
\ \ \ signifies that no operation with the specified Invoke\(hyID is in 
progress 
.LP
	\(em
	error\(hyresponse\(hyunexpected:
.LP
\ \ \ signifies that the invoked operation does not report failure
.LP
	\(em
	unrecognized\(hyerror:
.LP
\ \ \ signifies that the reported error is not one of those agreed between the
ROSE\(hyusers
.LP
	\(em
	unexpected\(hyerror:
.LP
\ \ \ signifies that the reported error is not one that the invoked operation 
may report 
.LP
	\(em
	mistyped\(hyparameter:
.LP
signifies that the type of the error parameter supplied is not that agreed
between the ROSE\(hyuser.
.PP
This parameter has to be supplied by the requestor of the
service.
.sp 1P
.LP
10.4.1.2\ \ \fIInvoke\(hyID\fR 
.sp 9p
.RT
.PP
This parameter identifies the corresponding invocation (see
\(sc\ 10.1.1.4). This parameter has to be supplied by the requestor of 
the service. The value is that of the rejected RO\(hyINVOKE indication, 
RO\(hyRESULT indication, or RO\(hyERROR indication primitive. 
.RT
.sp 1P
.LP
10.4.1.3\ \ \fIPriority\fR 
.sp 9p
.RT
.PP
This parameter defines the priority assigned to the transfer of the corresponding 
APDU (see \(sc\ 10.1.1.6). 
.bp
.RT
.sp 1P
.LP
10.5
	\fIRO\(hyREJECT\(hyP\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyP service is used to advise a ROSE\(hyuser of a problem 
detected by the ROSE\(hyprovider. This service is a provider\(hyinitiated 
service 
.PP
The related service structure consists of a single service\(hyprimitive, 
as illustrated in Figure\ 9/X.219. 
.RT
.LP
.rs
.sp 14P
.ad r
\fBFigure 9/X.219, p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
10.5.1
	\fIRO\(hyREJECT\(hyP Parameters\fR 
.sp 9p
.RT
.PP
Table 6/X.219 lists the RO\(hyREJECT\(hyP service parameters.
.RT
.LP
.sp 1
.ce
\fBH.T. [T9.219]\fR 
.ce
TABLE\ 6/X.219
.ce
\fBRO\(hyREJECT\(hyP Parameters\fR 
.ps 9
.vs 11
.nr VS 11
.nr PS 9
.TS
center box;
cw(90p) | cw(54p) .
Parameter name	Indication
_
.T&
lw(90p) | cw(54p) .
Invoke\(hyID	O
.T&
lw(90p) | cw(54p) .
Returned\(hyparameters	O
.T&
lw(90p) | cw(54p) .
Reject\(hyreason	O
_
.TE
.nr PS 9
.RT
.ad r
\fBTable 6/X.219 [T9.219], p.\fR 
.sp 1P
.RT
.ad b
.RT
.sp 1P
.LP
.sp 1
10.5.1.1\ \ \fIInvoke\(hyID\fR 
.sp 9p
.RT
.PP
This parameter identifies the corresponding invocation (see
\(sc\ 10.1.1.4). This parameter is supplied by the ROSE\(hyprovider. The 
value is 
that of the rejected RO\(hyINVOKE request, RO\(hyRESULT request, RO\(hyERROR 
request or RO\(hyREJECT\(hyU request primitives. This parameter may be 
omitted if an Invoke\(hyID is not available. 
.RT
.sp 1P
.LP
10.5.1.2\ \ \fIReturned\(hyparameters\fR 
.sp 9p
.RT
.PP
This parameter contains the parameters of the RO\(hyINVOKE request,
RO\(hyRESULT request, RO\(hyERROR request or RO\(hyREJECT\(hyU request 
primitives, if the corresponding APDU could not be transferred by the ROSE\(hyprovider. 
This 
parameter and the parameter Reject\(hyreason are mutually exclusive.
.bp
.RT
.sp 1P
.LP
10.5.1.3\ \ \fIReject\(hyreason\fR 
.sp 9p
.RT
.PP
This parameter specifies the reason for rejection as
follows:
.RT
.LP
	d)
	\fIGeneral\(hyproblem\fR : provider\(hyreject of an APDU with values:
.LP
	\(em
	unrecognized\(hyAPDU:
.LP
\ \ \ signifies that the type of the APDU, as evidenced by its Type Identifier, 
is not one of the four defined by Recommendation\ X.229 
.LP
	\(em
	mistyped\(hyAPDU:
.LP
\ \ \ signifies that the structure of the APDU does not conform to
Recommendation\ X.229.
.LP
	\(em
	badly\(hystructured\(hyAPDU:
.LP
\ \ \ signifies that the structure of the APDU does not conform to the standard
notation and encoding, defined in Recommendation\ X.208 and\ X.209.
.PP
This parameter is supplied by the ROSE\(hyprovider. This parameter
and the parameter Returned\(hyparameters are mutually exclusive.
.sp 2P
.LP
\fB11\fR 	\fBMapping of Notation on Service\fR 
.sp 1P
.RT
.sp 1P
.LP
11.1
	\fIApplication Context and Operations\fR 
.sp 9p
.RT
.PP
This section describes how an application\(hycontext is specified by means 
of the notation provided by the macros defined in \(sc\ 9. 
.PP
Such an application\(hycontext specification consists of:
.RT
.LP
	a)
	a bind\(hyoperation specified by means of the BIND macro, and
.LP
	b)
	an unbind\(hyoperation specified by means of the UNBIND macro,  and
.LP
	c)
	a set of operations specified by means of the OPERATION
macro, and
.LP
	d)
	 a set of errors related to operations and specified by means of the ERROR 
macro. 
.PP
The Remote Operations (i.e.\ bind\(hyoperation, unbind\(hyoperation and 
operations) may be invoked by the user\(hyelement. 
.PP
An association\(hyinitiating user\(hyelement established an
application\(hyassociation by invoking a bind\(hyoperation. If the
application\(hyassociation is established, operations may be invoked by the
user\(hyelement. When the association\(hyinitiating user\(hyelement wishes 
to release 
the application\(hyassociation, it invokes an unbind\(hyoperation.
.RT
.sp 1P
.LP
11.2
	 \fIMapping of Remote Operations on ACSE Services, RTSE Services, and\fR 
\fIROSE Services\fR 
.sp 9p
.RT
.PP
The bind\(hyoperation and the unbind\(hyoperation are mapped either on
ACSE services, or the RTSE services.
.PP
The operations are mapped on the ROSE services.
.RT
.sp 1P
.LP
11.2.1
	\fIMapping on ACSE services\fR 
.sp 9p
.RT
.PP
The bind\(hyoperation is mapped on the A\(hyASSOCIATE services and the
unbind\(hyoperation mapped on the A\(hyRELEASE service.
.RT
.sp 1P
.LP
11.2.1.1\ \ \fIMapping of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
A bind\(hyoperation is mapped on the A\(hyASSOCIATE service.
.RT
.sp 1P
.LP
11.2.1.1.1.\ \ \fIInvocation of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
The invocation of a bind\(hyoperation is mapped on the A\(hyASSOCIATE
request and A\(hyASSOCIATE indication service primitives.
.PP
The argument value of the bind\(hyoperation is mapped on the User
Information parameter of the service primitives.
.bp
.RT
.sp 1P
.LP
11.2.1.1.2\ \ \fIReply of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
The reply of a bind\(hyoperation is mapped on the A\(hyASSOCIATE response 
and A\(hyASSOCIATE confirm service primitives. 
.PP
If the bind\(hyoperation was successfully performed, the Result parameter 
of the service primitives is \*Qaccepted\*U, and the result value of the 
bind\(hyoperation is mapped on the User Information parameter of the service
primitives.
.PP
If the bind\(hyoperation was not successfully performed, the Result
parameter value of the service primitives is \*Qrejected (permanent)\*U, 
and the 
error value of the bind\(hyoperation is mapped on the User Information 
parameter of the service primitives. 
.RT
.sp 1P
.LP
11.2.1.2\ \ \fIMapping of a Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
An unbind\(hyoperation is mapped on the A\(hyRELEASE service.
.RT
.sp 1P
.LP
11.2.1.2.1\ \ \fIInvocation of an Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
The invocation of an unbind\(hyoperation is mapped on the A\(hyRELEASE
request and the A\(hyRELEASE indication service primitives.
.PP
The argument value of the unbind\(hyoperation is mapped on the User
Information parameter of the service primitives. The Reason parameter value 
of the service primitives is \*Qnormal\*U. 
.RT
.sp 1P
.LP
11.2.1.2.2\ \ \fIReply of an Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
The reply of an unbind\(hyoperation is mapped on the A\(hyRELEASE
response and A\(hyRELEASE confirm service primitives.
.PP
If the unbind\(hyoperation was successfully performed, the Reason
parameter value of the service primitives is \*Qnormal\*U, the result value 
of the unbind\(hyoperation is mapped on the User Information parameter 
of the service 
primitives, and the Result parameter of the service primitives is
\*Qaffirmative\*U.
.PP
If the unbind\(hyoperation was not successfully performed, the Reason
parameter value of the service primitives is \*Qnot finished\*U, the error 
value of the unbind\(hyoperation is mapped on the User Information parameter 
of the service primitives, and the Result parameter of the service primitives 
is 
\*Qaffirmative\*U.
.RT
.sp 1P
.LP
11.2.2
	\fIMapping on RTSE services\fR 
.sp 9p
.RT
.PP
The bind\(hyoperation is mapped on the RT\(hyOPEN service and the
unbind\(hyoperation mapped on the RT\(hyCLOSE service.
.RT
.sp 1P
.LP
11.2.2.1\ \ \fIMapping of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
A bind\(hyoperation is mapped on the RT\(hyOPEN service.
.RT
.sp 1P
.LP
11.2.2.1.1\ \ \fIInvocation of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
The invocation of a bind\(hyoperation is mapped on the RT\(hyOPEN request 
and RT\(hyOPEN indication service primitives. 
.PP
The argument value of the bind\(hyoperation is mapped on the User\(hydata
parameter of the service primitives. The Dialogue\(hymode parameter value is
\*Qtwo\(hyway\(hyalternate\*U.
.RT
.sp 1P
.LP
11.2.2.1.2\ \ \fIReply of a Bind\(hyoperation\fR 
.sp 9p
.RT
.PP
The reply of a bind\(hyoperation is mapped on the RT\(hyOPEN response and 
RT\(hyOPEN confirm service primitives. 
.PP
If the bind\(hyoperation was successfully performed, the Result parameter 
of the service primitives is \*Qaccepted\*U, and the result value of the 
bind\(hyoperation is mapped on the User\(hydata parameter of the service 
primitives. 
.bp
.PP
If the bind\(hyoperation was not successfully performed, the Result
parameter value of the service primitives is \*Qrejected (permanent)\*U, 
and the 
error value of the bind\(hyoperation is mapped on the User data parameter 
of the service primitives. 
.RT
.sp 1P
.LP
11.2.2.2\ \ \fIMapping of an Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
An unbind\(hyoperation is mapped on the RT\(hyCLOSE service.
.RT
.sp 1P
.LP
11.2.2.2.1\ \ \fIInvocation of an Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
The invocation of an unbind\(hyoperation is mapped on the RT\(hyCLOSE
request and the RT\(hyCLOSE indication service primitives.
.PP
The argument value of the unbind\(hyoperation is mapped on the User\(hydata 
parameter of the service primitives. The Reason parameter value of the 
service primitives is \*Qnormal\*U. 
.RT
.sp 1P
.LP
11.2.2.2.2\ \ \fIReply of an Unbind\(hyoperation\fR 
.sp 9p
.RT
.PP
The reply of an unbind\(hyoperation is mapped on the RT\(hyCLOSE response 
and RT\(hyCLOSE confirm service primitives. 
.PP
If the unbind\(hyoperation was successfully performed, the Reason
parameter value of the service primitives is \*Qnormal\*U, and the result 
value of the unbind\(hyoperation is mapped on the User\(hydata parameter 
of the service 
primitives.
.PP
If the unbind\(hyoperation was not successfully performed, the Reason
parameter value of the service primitives is \*Qnot finished\*U, and the error
value of the unbind\(hyoperation is mapped on the User\(hydata parameter of the
service primitives.
.RT
.sp 1P
.LP
11.2.3
	\fIMapping on ROSE services\fR 
.sp 9p
.RT
.PP
An operation is mapped on the ROSE services.
.RT
.sp 1P
.LP
11.2.3.1\ \ \fIInvocation of an Operation\fR 
.sp 9p
.RT
.PP
The invocation of an operation is mapped on the RO\(hyINVOKE
service.
.PP
The value assigned to the operation is mapped on the Operation\(hyvalue 
parameter of that service. The value of the Named\(hyType in the ARGUMENT 
clause of the OPERATION macro is mapped on the Argument parameter of that 
service.
.RT
.sp 1P
.LP
11.2.3.2\ \ \fIReply of an operation\fR 
.sp 9p
.RT
.PP
If an operation was succesfully performed, the reply is mapped on the RO\(hyRESULT 
service. 
.PP
The value of the Named\(hyType in the RESULT clause of the OPERATION
macro is mapped on the Result parameter of that service.
.PP
If an operation was not successfully performed, the reply is mapped on 
the RO\(hyERROR service. 
.PP
In this case one of the errors in the Identifier List of Error Names in 
the ERROR clause of the OPERATION macro may be applied. The value assigned 
to the applied error is mapped on the Error parameter of that service. 
The 
value
of the Named\(hyType in the PARAMETER clause of the ERROR macro of the applied
error is mapped on the Error\(hyparameter parameter of that service.
.RT
.sp 2P
.LP
\fB12\fR 	\fBSequencing Information\fR 
.sp 1P
.RT
.PP
This section defines the interaction among the Remote Operations, and the 
interaction among the ACSE service and the ROSE services. 
.bp
.RT
.LP
12.1
	\fISequencing Information for Remote Operations\fR 
.sp 1P
.RT
.sp 2P
.LP
12.1.1
	\fIBind\(hyoperation\fR 
.sp 1P
.RT
.sp 1P
.LP
12.1.1.1\ \ \fIUsage Restrictions\fR 
.sp 9p
.RT
.PP
A bind\(hyoperation is not used on an established
application\(hyassociation. A successfully performed bind\(hyoperation 
establishes an application\(hyassociation. 
.RT
.sp 1P
.LP
12.1.1.2\ \ \fIDisrupted Remote Operation\fR 
.sp 9p
.RT
.PP
The bind\(hyoperation does not disrupt any Remote Operation.
.RT
.sp 1P
.LP
12.1.1.3\ \ \fIDisrupting Remote Operations\fR 
.sp 9p
.RT
.PP
There are no disrupting Remote Operations.
.RT
.sp 1P
.LP
12.1.1.4\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
A bind\(hyoperation collision results when the user\(hyelements in both 
AEs simultaneously invoke a bind\(hyoperation on each other. In this case 
two 
independent application\(hyassociations are established.
.RT
.sp 2P
.LP
12.1.2
	\fIUnbind\(hyoperation\fR 
.sp 1P
.RT
.sp 1P
.LP
12.1.2.1\ \ \fIUsage Restrictions\fR 
.sp 9p
.RT
.PP
An unbind\(hyoperation is only used on an established
application\(hyassociation. It is only used by the user\(hyelement which 
invoked the bind\(hyoperation. It is only used when no replies from Operation 
Class\ 1 or\ 2 
operations are outstanding.
.PP
The application\(hyassociation ceases to be established no matter whether 
the unbind\(hyoperation is performed successfully or not. 
.RT
.sp 1P
.LP
12.1.2.2\ \ \fIDisrupted Remote Operations\fR 
.sp 9p
.RT
.PP
An unbind\(hyoperation does not disrupt Remote Operations in the case of 
Assoication Class\ 1 and Operation Class\ 1 or\ 2 operations. 
.PP
In all other cases an unbind\(hyoperation may disrupt operations.
However, if in a specific application\(hycontext Operation Classes\ 3, 4 or\ 5
and/or Association Class\ 2 or\ 3 are used, it is assumed that either the
disruption is acceptable or the application\(hycontext provides operations to
avoid the disruption.
.RT
.sp 1P
.LP
12.1.2.3\ \ \fIDisrupting Remote Operations\fR 
.sp 9p
.RT
.PP
There are no disrupting Remote Operations.
.RT
.sp 1P
.LP
12.1.2.4\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
Because only the association\(hyinitiator may release the
application\(hyassociation, there is no collision.
.RT
.sp 2P
.LP
12.1.3
	\fIOperations\fR 
.sp 1P
.RT
.sp 1P
.LP
12.1.3.1\ \ \fIUsage Restrictions\fR 
.sp 9p
.RT
.PP
Operations are only used on an established
application\(hyassociation.
.RT
.sp 1P
.LP
12.1.3.2\ \ \fIDisrupted Remote Operations\fR 
.sp 9p
.RT
.PP
Operations do not disrupt any Remote Operations.
.RT
.sp 1P
.LP
12.1.3.3\ \ \fIDisrupting Remote Operations\fR 
.sp 9p
.RT
.PP
Operations may be disrupted by an unbind\(hyoperation (see
\(sc\ 12.1.2.2).
.bp
.RT
.sp 1P
.LP
12.1.3.4\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
There are no collisions of operations.
.RT
.sp 1P
.LP
12.1.4
	\fIFurther Sequencing Information\fR 
.sp 9p
.RT
.PP
Disrupting services are not visible at the operation\(hyinterface.
However operations may be disrupted by services (see \(sc\ 12.2).
.PP
Bind\(hyoperations and unbind\(hyoperations are disrupted by the A\(hyABORT,
A\(hyP\(hyABORT, RT\(hyU\(hyABORT and RT\(hyP\(hyABORT services.
.PP
Operations are disrupted by the A\(hyABORT, A\(hyP\(hyABORT, RT\(hyU\(hyABORT,
RT\(hyP\(hyABORT, RO\(hyREJECT\(hyU and RO\(hyREJECT\(hyP services.
.PP
In addition an operation may be disrupted by the A\(hyRELEASE service.
But this reflects only the disruption of an operation by an unbind\(hyoperation. 
The disrupted operations are not considered in the disrupted services of 
\(sc\ 12.2.
.PP
Because all Remote Operations are mapped on services, and disrupting Remote 
Operations (unbind\(hyoperation) are represented by services, no disrupting 
Remote Operations are considered in the disrupting services clauses of 
\(sc\ 12.2.
.RT
.sp 2P
.LP
12.2
	\fISequencing Informations for Services\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.1
	\fIACSE Services\fR 
.sp 9p
.RT
.PP
The sequencing information for ACSE services are described in
Recommendation\ X.217. Additional information is provided in this clause.
.RT
.sp 1P
.LP
12.2.1.1\ \ \fIDisrupted ROSE Services\fR 
.sp 9p
.RT
.PP
In addition to the disrupted services defined in
Recommendation\ X.217 all ROSE services except the RO\(hyREJECT\(hyP service 
are 
disrupted by the A\(hyABORT and A\(hyP\(hyABORT services and may be disrupted 
by the 
A\(hyRELEASE service (see \(sc\ 12.2.3.6).
.RT
.sp 1P
.LP
12.2.1.2\ \ \fIDisrupting ROSE Services\fR 
.sp 9p
.RT
.PP
There are no disrupting ROSE services.
.RT
.sp 1P
.LP
12.2.2
	\fIRTSE Services\fR 
.sp 9p
.RT
.PP
The sequencing information for RTSE services are described in
Recommendation\ X.218. Additional information is provided in this section.
.RT
.sp 1P
.LP
12.2.2.1\ \ \fIDisrupted ROSE Services\fR 
.sp 9p
.RT
.PP
In addition to the disrupted services defined in
Recommendation\ X.218 all ROSE services except the RO\(hyREJECT\(hyP service 
are 
disrupted by the RT\(hyU\(hyABORT, RT\(hyP\(hyABORT and the negative RT\(hyTRANSFER 
confirm 
services.
.RT
.sp 1P
.LP
12.2.2.2\ \ \fIDisrupting ROSE Services\fR 
.sp 9p
.RT
.PP
There are no disrupting ROSE services.
.RT
.sp 1P
.LP
12.2.3
	\fIROSE Services\fR 
.sp 9p
.RT
.PP
This section describes the interaction among the ROSE services.
Interactions with ACSE services are described in \(sc\ 12.2.1, and interactions
with RTSE services are described in \(sc\ 12.2.2.
.bp
.RT
.sp 2P
.LP
12.2.3.1\ \ \fIRO\(hyINVOKE Service\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.3.1.1\ \ \fIType of Service\fR 
.sp 9p
.RT
.PP
The RO\(hyINVOKE service is a non\(hyconfirmed service.
.RT
.sp 1P
.LP
12.2.3.1.2\ \ \fIUsage Restriction\fR 
.sp 9p
.RT
.PP
The RO\(hyINVOKE service is only used on an established
application\(hyassociation.
.RT
.sp 1P
.LP
12.2.3.1.3\ \ \fIDisrupted Services\fR 
.sp 9p
.RT
.PP
The RO\(hyINVOKE service does not disrupt any services.
.RT
.sp 1P
.LP
12.2.3.1.4\ \ \fIDisrupting Services\fR 
.sp 9p
.RT
.PP
The RO\(hyINVOKE service is disrupted by the RO\(hyREJECT\(hyP service.
.RT
.sp 1P
.LP
12.2.3.1.5\ \ \fICollision\fR 
.sp 9p
.RT
.PP
There are no collisions of the RO\(hyINVOKE service.
.RT
.sp 2P
.LP
12.2.3.2\ \ \fIRO\(hyRESULT\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.3.2.1\ \ \fIType of Service\fR 
.sp 9p
.RT
.PP
The RO\(hyRESULT service is a non\(hyconfirmed service.
.RT
.sp 1P
.LP
12.2.3.2.2\ \ \fIUsage Restriction\fR 
.sp 9p
.RT
.PP
The RO\(hyRESULT service is only used on an established
application\(hyassociation and in reply to an RO\(hyINVOKE service.
.RT
.sp 1P
.LP
12.2.3.2.3\ \ \fIDisrupted Services\fR 
.sp 9p
.RT
.PP
The RO\(hyRESULT services does not disrupt any services.
.RT
.sp 1P
.LP
12.2.3.2.4\ \ \fIDisrupting Services\fR 
.sp 9p
.RT
.PP
The RO\(hyRESULT service is disrupted by the RO\(hyREJECT\(hyP
service.
.RT
.sp 1P
.LP
12.2.3.2.5\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
There are no collisions of the RO\(hyRESULT service.
.RT
.sp 2P
.LP
12.2.3.3\ \ \fIRO\(hyERROR\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.3.3.1\ \ \fIType of Service\fR 
.sp 9p
.RT
.PP
The RO\(hyERROR service is a non\(hyconfirmed service.
.RT
.sp 1P
.LP
12.2.3.3.2\ \ \fIUsage Restriction\fR 
.sp 9p
.RT
.PP
The RO\(hyERROR service is only used on an established
application\(hyassociation and in reply to an RO\(hyINVOKE service.
.RT
.sp 1P
.LP
12.2.3.3.3\ \ \fIDisrupted services\fR 
.sp 9p
.RT
.PP
The RO\(hyERROR service does not disrupt any service.
.RT
.sp 1P
.LP
12.2.3.3.4\ \ \fIDisrupting Services\fR 
.sp 9p
.RT
.PP
The RO\(hyERROR service is disrupted by the RO\(hyREJECT\(hyP
service.
.bp
.RT
.sp 1P
.LP
12.2.3.3.5\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
There are no collisions of the RO\(hyERROR service.
.RT
.sp 2P
.LP
12.2.3.4\ \ \fIRO\(hyREJECT\(hyU\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.3.4.1\ \ \fIType of Service\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyU service is a non\(hyconfirmed service.
.RT
.sp 1P
.LP
12.2.3.4.2\ \ \fIUsage Restriction\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyU service is only used on an established
application\(hyassociation and in reply to RO\(hyINVOKE, RO\(hyRESULT and 
RO\(hyERROR 
services.
.RT
.sp 1P
.LP
12.2.3.4.3\ \ \fIDisrupted Services\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyU service does not disrupt any service.
.RT
.sp 1P
.LP
12.2.3.4.4\ \ \fIDisrupting Services\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyU service is disrupted by the RO\(hyREJECT\(hyP
service.
.RT
.sp 1P
.LP
12.2.3.4.5\ \ \fICollisions\fR 
.sp 9p
.RT
.PP
There are no collisions of the RO\(hyREJECT\(hyU service.
.RT
.sp 2P
.LP
12.2.3.5\ \ \fIRO\(hyREJECT\(hyP\fR 
.sp 1P
.RT
.sp 1P
.LP
12.2.3.5.1\ \ \fIType of Service\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyP service is a provider initiated service.
.RT
.sp 1P
.LP
12.2.3.5.2\ \ \fIUsage Restriction\fR 
.sp 9p
.RT
.PP
Not applicable.
.RT
.sp 1P
.LP
12.2.3.5.3\ \ \fIDisrupted Services\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyP service disrupts all other ROSE services.
.RT
.sp 1P
.LP
12.2.3.5.4\ \ \fIDisrupting Services\fR 
.sp 9p
.RT
.PP
The RO\(hyREJECT\(hyP service is not disrupted by any other service.
.RT
.sp 1P
.LP
12.2.3.5.5\ \ \fICollision\fR 
.sp 9p
.RT
.PP
If the ACSE service or an RTSE service cause an abort or the
release of an application\(hyassociation, it is a local matter to inform the
service\(hyuser about outstanding RO\(hyREJECT\(hyP services for
Returned\(hyparameters.
.RT
.sp 1P
.LP
12.2.3.6\ \ \fIAdditional Sequencing Information\fR 
.sp 9p
.RT
.PP
The usage restrictions for unbind\(hyoperations (\(sc\ 12.1.2.1) and the 
mapping of unbind\(hyoperations onto the A\(hyRELEASE service prevents 
the disruption of ROSE services, if only Association Class\ 1 and Operation 
Classes\ 1 and\ 2 are used. 
.PP
If Association Classes 2 or 3, or Operation Class 3, 4 or 5 are used, the 
A\(hyRELEASE service may disrupt ROSE services. In this case it is the 
responsibility of the application\(hycontext designer, either to accept this
disruption or to provide means (e.g.\ operations) to prepare for the release 
of an application\(hyassociation. 
\v'1P'
.bp
.RT
.ce 1000
ANNEX\ A
.ce 0
.ce 1000
(to Recommendation X.219)
.sp 9p
.RT
.ce 0
.ce 1000
\fBNotation Supporting the Specification of Application\(hyservice\(hyelements\fR 
.sp 1P
.RT
.ce 0
.ce 1000
\fBand Application Contexts\fR 
.ce 0
.PP
This Annex is an integral part of this Recommendation.
.sp 1P
.RT
.PP
This Annex provides a notation supporting the specification of
application\(hyservice\(hyelements and application contexts which are specified 
by 
means of the RO\(hynotation. The RO\(hynotation may be used to specify the
bind\(hyoperation and the unbind\(hyoperation of an application context. 
Additionally the RQ\(hynotation may be used to specify operation types 
and error types of 
several application\(hyservice\(hyelements (ROSE\(hyuser ASEs). If the 
RQ\(hynotation is 
combined with other notations, other specification tools defined elsewhere
might be used.
.PP
This Annex defines two macros supporting the specification of
application\(hyservice\(hyelements and application contexts. The formal 
definition of these macros is shown in Figure\ A\(hy1/X.219. 
.RT
.sp 1P
.LP
A.1
	\fIApplication\(hyservice\(hyelements\fR 
.sp 9p
.RT
.PP
The notation supports the unique identification of an ASE.
.PP
If an ASE is an ROSE\(hyuser, the notation additionally supports the
specification of the characteristics of the ASE. The operation\(hyinterface and
the protocol of an ROSE\(hyuser ASE are specified by a set of operation 
types and a set of error types. 
.PP
The protocol specified for a specific ASE may be inherently:
.RT
.LP
	a)
	symmetric, or
.LP
	b)
	asymmetric.
.PP
In the symmetric case both ASE\(hyusers may invoke the same set of
operation types.
.PP
In the asymmetric case one ASE\(hyuser (called supplier in the context 
of this Annex) provides some information\(hyprocessing functionality which 
is used by the peer ASE\(hyuser (called consumer in the context of this 
Annex). In this case a specific operation type may be: 
.RT
.LP
	1)
	invoked by the consumer, and/or
.LP
	2)
	invoked by the supplier
.LP
of the information\(hyprocessing functionality.
.PP
\fINote\fR \ \(em\ A particular allocation of the terms \*Qsupplier\*U and
\*Qconsumer\*U is often intuitive. One might naturally consider a file system,
e.g.,\ to be called a supplier and its user to be called a consumer. Strictly
speaking, however, the asignment of the two terms is arbitrary.
.PP
If an ASE uses the concept of linked\(hyoperations, a specific operation 
type may be invoked as a child\(hyoperation. The invoker of the child\(hyoperation 
is the performer of the linked parent\(hyoperation. Operation types solely 
invoked as child\(hyoperations shall not be included in the ASE specification, 
they are 
listed in the type specification of their parent\(hyoperations.
.PP
The error types the operations may report are not included in the ASE specification, 
they are listed in the type specification of the operations. 
.PP
The set of the remaining operations (operations not solely invoked as child\(hyoperations), 
and who is allowed to invoke this operations may be 
reflected by a formal notation specifying the ROSE\(hyuser ASE.
.RT
.sp 1P
.LP
A.1.1
	\fISpecification of an Application\(hyservice\(hyelement\fR 
.sp 9p
.RT
.PP
An ASE may be specified by a formal notation supported by the
\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR macro (see Figure\ A\(hy1/X.219).
.bp
.RT
.LP
.rs
.sp 31P
.ad r
\fBFigure A\(hy1/X.219 (Part 1 of 2) [T10.219], p.\ (traiter comme
tableau MEP)\fR 
.sp 1P
.RT
.ad b
.RT
.PP
The type notation of the \fBAPPLICATION\(hySERVICE\(hyELEMENT\fR macro
enables the specification of an ASE. The value notation of the
\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR macro enables the specification 
of a unique 
identifier for the ASE.
.PP
The notation for an ASE type is the keyword
\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR optionally followed by the specification 
of 
operations.
.PP
If the protocol specified for the ASE is symmetric, the keyword
\fBOPERATIONS\fR and the reference names of the operations are specified.
.PP
If the protocol specified for the ASE is asymmetric, the keywords
\fBCONSUMER INVOKES\fR and the reference names of the operations the consumer 
may invoke, and/or the keywords \fBSUPPLIER INVOKES\fR and the reference 
names of the operations the supplier may invoke, are specified. 
.bp
.RT
.sp 1P
.LP
A.2
	\fIApplication Contexts\fR 
.sp 9p
.RT
.PP
In the context of this Annex an application context explicitly
identifies:
.RT
.LP
	a)
	a bind\(hyoperation,
.LP
	b)
	an unbind\(hyoperation, and
.LP
	c)
	a set of application\(hyservice\(hyelements.
.LP
and requires one or more identified abstract\(hysyntaxes.
.PP
The set of application\(hyservice\(hyelements contains:
.LP
	1)
	ASEs not using the RO\(hynotation, i.e. the ACSE, optionally
the RTSE, and optionally others; and
.LP
	2)
	optionally the ROSE and ROSE\(hyuser ASEs.
.PP
If the application context contains ROSE\(hyuser ASEs with an
asymmetrical protocol, the notation supports the specification whether the
association\(hyinitiator or the association\(hyresponder is the consumer 
of such an ASE. 
.PP
The identification of the bind\(hyoperation, the unbind\(hyoperation, the
application\(hyservice\(hyelements, and the abstract\(hysyntaxes may be 
reflected by a formal notation specifying the application context. 
.RT
.sp 1P
.LP
A.2.1
	\fISpecification of an Application Context\fR 
.sp 9p
.RT
.PP
An application context may be specified by a formal notation
supported by the \fBAPPLICATION\(hyCONTEXT\fR macro (see Figure\ A\(hy1/X.219).
.PP
The type notation of the \fBAPPLICATION\(hyCONTEXT\fR macro enables the
specification of the application context. The value notation of the
\fBAPPLICATION\(hyCONTEXT\fR macro enables the specification of a unique 
identifier 
for the application context.
.PP
The notation for an application context type is the keyword
\fBAPPLICATION\(hyCONTEXT\fR , followed by the keywords \fBAPPLICATION 
SERVICE ELEMENTS\fR and the reference names of ASEs not using the RO\(hynotation, 
followed by the 
keyword \fBBIND\fR and the reference name of the bind\(hyoperation type, 
followed by the keyword \fBUNBIND\fR and the reference name of the unbind\(hyoperation 
type, 
optionally followed by the specification of ASEs using operations, followed 
by the keywords \fBABSTRACT SYNTAXES\fR and the reference names of the 
abstract 
syntaxes.
.PP
If the application context contains ROSE\(hyuser ASEs, the keywords
\fBREMOTE OPERATIONS\fR and the reference name of the ROSE, followed by the
specification of ASEs with a symmetrical protocol, and/or the specification 
of ASEs with an asymmetrical protocol is used. The specification of ASEs 
with a 
symmetrical protocol is the keywords \fBOPERATIONS OF\fR and the reference 
names of that ASEs. The specification of ASEs with an asymmetrical protocol 
is the 
keywords \fBINITIATOR CONSUMER OF\fR and the reference names of ASEs the 
consumer of which is the association\(hyinitiator, and/or the keywords 
\fBRESPONDER CONSUMER OF\fR and the reference names of ASEs the consumer 
of which is the 
association\(hyresponder.
.RT
.sp 1P
.LP
A.2.2
	\fIMapping of Notation onto Service\fR 
.sp 9p
.RT
.PP
The application context identifier and the list of abstract syntax names 
specified by means of the \fBAPPLICATION\(hyCONTEXT\fR macro are mapped 
either on the RT\(hyOPEN services of RTSE, if RTSE is included in the application 
context; or else on the A\(hyASSOCIATE services of ACSE.
.PP
The application context value is mapped onto the Application Context Name 
parameter of the RT\(hyOPEN or A\(hyASSOCIATE services. 
.PP
The abstract syntax names are mapped onto the Presentation Context
Definition List parameter and the Presentation Context Definition Result 
List of the RT\(hyOPEN or A\(hyASSOCIATE services. 
\v'1P'
.bp
.RT
.LP
.rs
.sp 35P
.ad r
\fBFigure A\(hy1/X.219 (Part 2 of 2) [T11.219], p.\ (traiter comme
tableau MEP)\fR 
.sp 1P
.RT
.ad b
.RT
.ce 1000
ANNEX\ B
.ce 0
.ce 1000
(to Recommendation X.219)
.sp 9p
.RT
.ce 0
.ce 1000
\fBGuidelines for Application Protocol Designers on the Use of ROSE\fR 
.sp 1P
.RT
.ce 0
.PP
This Annex is not part of this Recommendation.
.sp 1P
.RT
.PP
This Annex provides examples and guidelines for application
protocol designers on the user of ROSE.
.sp 1P
.LP
B.1
	\fIExamples for Operations and Errors\fR 
.sp 9p
.RT
.PP
This section provides examples for the definition of operations
and errors.
.bp
.RT
.sp 1P
.LP
B.1.1
	\fIOperation Classes\fR 
.sp 9p
.RT
.PP
This clause provides examples for the definition of operations of Operation 
Class\ 1 to\ 5. 
.PP
The operation \fBoperationExample12\fR of Operation Class 1 or 2 (see
example below) reports success (result of type \fBArgumentType12\fR ) or 
failure 
(errors \fBerrorExample1\fR or \fBerrorExample2\fR ). The argument of the 
operation 
\fBoperationExample12\fR is of type \fBArgumentType12\fR . The value of 
the operation 
\fBoperationExample12\fR is\ \fB1\fR .
.RT
.LP
	\fBoperationExample12\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentType12\fR 
.LP
	\fBRESULT\fR 	\fBResultType12\fR 
.LP
	\fBERROR\fR 	\fB{errorExample1, errorExample2]\fR 
.LP
	\fB::= 1\fR 
.PP
The operation \fBoperationExample3\fR of Operation Class 3 (see
example below) reports failure (error \fBerrorExample1\fR ) only, if any. The
argument of the operation \fBoperationExample3\fR is of type \fBArgumentType3\fR 
. The value of the operation \fBoperationExample3\fR is\ \fB2\fR . 
.LP
	\fBoperationExample3 \fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentType3\fR 
.LP
	\fBERROR\fR 	\fB{errorExample1}\fR 
.LP
	\fB::= 2\fR 
.PP
The \fBoperationExample4\fR operation of Operation Class 4 (see
example below) reports success (result of type \fBResultType4\fR ) only. The
argument
of the operation \fBoperationExample4\fR is of type \fBArgumentType4\fR 
. The value of the operation \fBoperationExample4\fR is\ \fB3\fR . 
.LP
	\fBoperationExample4\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 	\fBArgumentType4\fR 
.LP
	\fBRESULT\fR 	\fBResultType4\fR 
.LP
	\fB::= 3\fR 
.PP
The operations \fBoperationExample51\fR and \fBoperationExample52\fR of
Operation Class 5 (see example below) reports no outcome. The argument 
of the operation \fBoperationExample51\fR is of type \fBArgumentType4\fR 
, the operation 
\fBoperationExample52\fR has no argument. The value of the operation
\fBoperationExample51\fR is\ \fB4\fR , the value of the operation \fBoperationExample52\fR 
is\ \fB5\fR . 
.LP
	\fBoperationExample51\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 	\fBArgumentType4\fR 
.LP
	\fB::= 4\fR 
.LP
	\fBoperationExample52\fR 	\fBOPERATION\fR 
.LP
\fB::= 5\fR 
.sp 1P
.LP
B.1.2
	\fILinked\(hyoperations\fR 
.sp 9p
.RT
.PP
The example below shows the definition of a set of
linked\(hyoperations consisting of the parent\(hyoperation \fBparent\(hyop12\fR 
and the 
child\(hyoperations \fBoperationExample51\fR and \fBoperationExample52\fR .
.RT
.LP
	\fBparent\(hyop12
\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentType12\fR 
.LP
	\fBRESULT\fR 	\fBResultType12\fR 
.LP
	\fBERROR\fR 	\fB{errorExample1, errorExample2]\fR 
.LP
	\fBLINKED\fR 	\fB{operationExample51,
operationExample52}\fR 
.LP
	\fB::= 6\fR 
.sp 1P
.LP
B.1.3
	\fIErrors\fR 
.sp 9p
.RT
.PP
Errors (see \fBerrorExample1\fR and \fBerrorExample2\fR below) reports
failure. The parameter of the error \fBerrorExample1\fR is of type
\fBParameterType1\fR , the error \fBerrorExample2\fR has no parameter. 
The value of the error \fBerrorExample1\fR is\ \fB1\fR , the value of the 
error \fBerrorExample2\fR 
is\ \fB2\fR .
.RT
.LP
	\fBerrorExample1\fR \fR 	\fBERROR\fR 
.LP
\fBPARAMETER\fR 	\fBParameterType1\fR 
.LP
	\fB::= 1\fR 
.LP
	\fBerrorExample2\fR \fR 	\fBERROR\fR 
.LP
\fB::= 2\fR .bp
.sp 1P
.LP
B.2
	\fIExamples for\fR 
\fIBind\(hyoperations\fR \fIand\fR \fIUnbind\(hyoperations\fR 
.sp 9p
.RT
.PP
This clause provides examples for the definition of bind\(hyoperations 
and unbind\(hyoperations. 
.RT
.sp 1P
.LP
B.2.1
	\fIBind\(hyoperations\fR 
.sp 9p
.RT
.PP
Bind\(hyoperations are used to establish an application\(hyassociation.
.PP
The request of the bind\(hyoperation \fBBindExample1\fR to establish an
application\(hyassociation is accompanied by the argument of type
\fBBindArgumentType1\fR . The positive response to the application\(hyassociation 
establishment is accompanied by the result of type \fBBindResultType1\fR . The
negative response to the application\(hyassociation establishment is accompanied 
by the bind\(hyerror of type \fBBindErrorType1\fR . 
.RT
.LP
	\fBBindExample1 ::=\fR 	\fBBIND\fR 
.LP
\fBARGUMENT\fR 
	\fBBindArgumentType1\fR 
.LP
	\fBRESULT\fR 	\fBBindResultType1\fR 
.LP
	\fBBIND\(hyERROR\fR 	\fBBindErrorType1\fR 
.PP
The request of the bind\(hyoperation \fBBindExample2\fR to establish an 
application\(hyassociation is accompanied by the argument of type 
\fBBindArgumentType1\fR . The positive response to the application\(hyassociation 
establishment is not accompanied by any user data. The negative response 
to the application\(hyassociation establishment is accompanied by the bind\(hyerror 
of type \fBBindErrorType1\fR . 
.LP
	\fBBindExample2 ::=\fR 	\fBBIND\fR 
.LP
\fBARGUMENT\fR 
	\fBBindArgumentType1\fR 
.LP
	\fBBIND\(hyERROR\fR 	\fBBindErrorType1\fR 
.PP
Note that argument, result and bind\(hyerror of a bind\(hyoperation are 
optional. Neither the request of the bind\(hyoperation \fBBindExample3\fR 
to establish an application\(hyassociation nor the response to the application\(hyassociation 
establishment are accompanied by any user data.
.LP
	\fBBindExample3 ::=\fR 	\fBBIND\fR 
.sp 1P
.LP
B.2.2
	\fIUnbind\(hyoperations\fR 
.sp 9p
.RT
.PP
Unbind\(hyoperations are used to release an application\(hyassociation.
.PP
The request of the unbind\(hyoperation \fBUnbindExample1\fR to release an
application\(hyassociation is accompanied by the argument of type
\fBUnbindArgumentType1\fR . The response to the application\(hyassociation 
release is accompanied either by the result of type \fBUnbindResultType1\fR 
or by the 
unbind\(hyerror of type \fBUnbindErrorType1\fR .
.RT
.LP
	\fBUnbindExample1 ::=\fR 	\fBUNBIND\fR 
.LP
\fBARGUMENT\fR 
	\fBUnbindArgumentType1\fR 
.LP
	\fBRESULT
	\fBUnbindResultType1\fR 
.LP
	\fBUNBIND\(hyERROR\fR 	\fBUnbindErrorType1\fR 
.PP
The request of the unbind\(hyoperation \fBUnbindExample2\fR to release 
an application\(hyassociation is accompanied by the argument of type 
\fBUnbindArgumentType\ 1\fR . The response to the application\(hyassociation 
release is optionally accompanied by the unbind\(hyerror of type \fBUnbindErrorType1\fR 
. 
.LP
	\fBUnbindExample2 ::=
	\fBUNBIND\fR 
.LP
\fBARGUMENT\fR 	\fBUnbindArgumentType1\fR 
.LP
	\fBUNBIND\(hyERROR\fR 	\fBUnbindErrorType1\fR 
.PP
Note that argument, result and unbind\(hyerror of an unbind\(hyoperation 
are optional. Neither the request of the bind\(hyoperation \fBUnbindExample3\fR 
to 
release an application\(hyassociation nor the response to the
application\(hyassociation release are accompanied by any user data.
.LP
	\fBUnbindExample3 ::=\fR 	\fBUNBIND\fR 
.sp 1P
.LP
B.3
	\fIExport and Import of Operations and Errors\fR 
.sp 9p
.RT
.PP
This clause gives examples how to export and import operations and  errors.
.PP
The example below shows how to export operation and errors. The
\fBoperation10\fR and \fBerror10\fR have local values. \fBOperationTypeA\fR and
\fBErrorTypeA\fR are types, and specific values have to be assigned in the
importing modules. The \fBoperation11\fR and \fBerror11\fR have globally unique
values.
.bp
.RT
.LP
	\fBExportingModule {objectidentifier1} DEFINITIONS ::=\fR 
.LP
\fBBEGIN\fR 
.LP
	\fBEXPORTS\fR 	\fBoperation10, OperationTypeA, operation11, error10,
ErrorTypeA, error11;\fR 
.LP
	\fBIMPORTS\fR 	\fBOPERATION, ERROR, BIND, UNBIND\fR 
.LP
\fBFROM\ Remote\(hyOperation\(hyNotation\fR 
.LP
FROM
\ \fB{joint\(hyiso\(hyccitt remote\(hyoperation(4) notation(0)};\fR 
.LP
	\fBoperation10\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentType10\fR 
.LP
	\fBRESULT\fR 	\fBResultType10\fR 
.LP
	\fBERROR\fR 	\fB{error10}\fR 
.LP
	\fB::= 10\fR 
.LP
	\fBOperationTypeA\fR 	\fB::=\fR 
.LP
\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentTypeA\fR 
.LP
	\fBRESULT\fR 
	\fBResultTypeA\fR 
.LP
	\fBoperation11\fR 	\fBOPERATION\fR 
.LP
\fBARGUMENT\fR 
	\fBArgumentType11\fR 
.LP
	\fBRESULT\fR 	\fBResultType11\fR 
.LP
	\fBERROR\fR 	\fB{error11}\fR 
.LP
	\fB::= {objectidentifier2component11}\fR 
.LP
	\fBerror10\fR 	\fBERROR\fR 
.LP
\fBPARAMETER\fR 	\fBParameterType10\fR 
.LP
	\fB::= 10\fR 
.LP
	\fBerrorTypeA\fR 
	\fB::=\fR 
.LP
\fBERROR\fR 
.LP
\fBPARAMETER\fR 	\fBParameterTypeA\fR 
.LP
	\fBerror11\fR 	\fBERROR\fR 
.LP
\fBPARAMETER\fR 	\fBParameterType11\fR 
.LP
	\fB::= {objectidentifier2component12}\fR 
.LP
	\fBEND\fR 
.PP
The example below shows how to import operations and errors. The \fBoperation10\fR 
and \fBerro10\fR have loval values defined in the exporting module. The 
designer of the importing module is responsible for the uniqueness of these 
values within the abstract syntax. The operation \fBoperation13\fR is of 
type 
\fBoperationTypeA\fR and has the value\ \fB13\fR assigned. The error \fBerror13\fR 
is of 
type \fBErrorTypeA\fR and has the value\ \fB13\fR assigned. The \fBoperation11\fR 
and 
\fBerror11\fR have globally unique values defined in the exporting module.
.LP
	\fBImportingModule {objectidentifier3} DEFINITIONS ::=\fR 
.LP
\fBBEGIN\fR 
.LP
	 \fBIMPORTS\fR \fBoperation10, OperationTypeA, operation11, error10,\fR 
\fBerrorTypeA, error11\fR 
.LP
\fBFROM\ ExportingModule {objectidentifier1};\fR 
.LP
	\fBoperation13\fR 	\fBOperationTypeA\fR 	\fB::= 13\fR 
.LP
	\fBerror13\fR 	\fBErrorTypeA\fR 	\fB::= 13\fR 
.LP
	\fBEND\fR 
.sp 1P
.LP
B.4
	\fIDefinition of\fR 
\fIApplication\(hyservice\(hyelements\fR 
.sp 9p
.RT
.PP
This clause gives examples how to define
application\(hyservice\(hyelements. The examples refer to the operations 
and errors defined in the examples of clause\ B.1. 
.PP
The application\(hyservice\(hyelement \fBelement1\fR includes the operations
\fBoperationExample12\fR and \fBoperationExample3\fR and the errors \fBerrorExample1\fR 
and \fBerrorExample2\fR . Note, the errors are included indirectly by the 
definition of the operations. The application\(hyservice\(hyelement \fBelement1\fR 
is symmetric, 
i.e.\ both user\(hyelements may invoke the operations \fBoperationExample12\fR 
and 
\fBoperationExample3\fR .
.RT
.LP
	\fBelement1\fR 
	\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR 
.LP
\fBOPERATIONS {operationExample12, operationExample3}\fR 
.LP
\fB::=\ {objectidentifierOfElement1}\fR .bp
.PP
The application\(hyservice\(hyelement \fBelement2\fR includes the operations 
\fBoperationExample3\fR and \fBoperationExample4\fR and the error \fBerrorExample1\fR 
. The application\(hyservice\(hyelement \fBelement2\fR is asymmetric, i.e. 
only one 
user\(hyelement (that in the consumer role) may invoke the operations
\fBoperationExample3\fR and \fBoperationExample4\fR .
.LP
	\fBelement2\fR 
	\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR 
.LP
\fBCONSUMER INVOKES {operationExample3, operationExample4}\fR 
.LP
\fB::=\ {objectidentifierOfElement2}\fR 
.PP
The application\(hyservice\(hyelement \fBelement3\fR includes the operations 
\fBoperationExample12\fR and \fBoperationExample51\fR and the errors \fBerrorExample1\fR 
and \fBerrorExample2\fR . The application\(hyservice\(hyelement \fBelement3\fR 
is asymmetric, i.e. only one user\(hyelement (that in the supplier role) 
may invoke the 
operations \fBoperationExample12\fR and \fBoperationExample51\fR .
.LP
	\fBelement3\fR 
	\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR 
.LP
\fBSUPPLIER INVOKES {operationExample12,
operationExample51}\fR 
.LP
\fB::=\ {objectidentifierOfElement3}\fR 
.PP
The application\(hyservice\(hyelement \fBelement4\fR includes the operations 
\fBparent\(hyop12\fR , \fBoperationExample51\fR and \fBoperationExample52\fR 
and the errors 
\fBerrorExample1\fR and \fBerrorExample2\fR . Note, the child\(hyoperations
\fBoperationExample51\fR and \fBoperationExample52\fR are included indirectly 
by the 
definition of the parent\(hyoperation \fBparent\(hyop12\fR . The
application\(hyservice\(hyelement \fBelement4\fR is asymmetric, i.e. only one
user\(hyelement (that in the consumer role) may invoke the operation \fBparent\(hyop12\fR 
and only the other user\(hyelement (that in the supplier role) may invoke 
the 
child\(hyoperations \fBoperationExample51\fR and \fBoperationExample52\fR 
during the 
execution of the parent\(hyoperation \fBparent\(hyop12\fR .
.LP
	\fBelement4\fR 
	\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR 
.LP
\fBCONSUMER INVOKES {parent\(hyop12}\fR 
.LP
\fB::=\ {objectidentifierOfElement4}\fR 
.PP
The application\(hyservice\(hyelement \fBelement5\fR includes the same
operations and the errors as the application\(hyservice\(hyelement \fBelement4\fR 
. The 
only difference is, that the user\(hyelement in the supplier role may invoke 
the operation \fBoperationExample52\fR either as a child\(hyoperation, 
or outside a set of linked\(hyoperations (as a non\(hychild\(hyoperation). 
.LP
	\fBelement5\fR 
	\fBAPPLICATION\(hySERVICE\(hyELEMENT\fR 
.LP
\fBCONSUMER INVOKES {parent\(hyop12}\fR 
.LP
\fBSUPPLIER INVOKES {operationExample52}\fR 
.LP
\fB::=\ {objectidentifierOfElement5}\fR 
.sp 1P
.LP
B.5
	\fIDefinition of\fR 
\fIApplication Contexts\fR 
.sp 9p
.RT
.PP
This clause gives examples how to define application contexts for several 
Association Classes. The examples refer to the 
application\(hyservice\(hyelement defined in the examples of clause\ B.4, 
and the 
bind\(hyoperations and unbind\(hyoperations defined in the examples of 
clause\ B.2. 
.PP
The application context \fBcontext1\fR includes the
application\(hyservice\(hyelements ACSE, RTSE, ROSE, and \fBelement2\fR ; the
bind\(hyoperation \fBBindExample1\fR and the unbind\(hyoperation \fBUnbindExample3\fR 
. The 
association\(hyinitiator may invoke the operations \fBoperationExample3\fR and
\fBoperationExample4\fR . The association\(hyresponder is not allowed to 
invoke any 
operation (Association Class\ 1).
.RT
.LP
	\fBcontext1\fR 	\fBAPPLICATION\(hyCONTEXT\fR 
.LP
\fBAPPLICATION SERVICE ELEMENTS\fR 	\fB{aCSE, rTSE}\fR 
.LP
	\fBBIND\fR 
	\fBBindExample1\fR 
.LP
	\fBUNBIND\fR 
	\fBUnbindExample3\fR 
.LP
	\fBREMOTE OPERATIONS\fR 
	\fB{rOSE}\fR 
.LP
	\fBINITIATOR CONSUMER OF\fR 	\fB{element2}\fR 
.LP
	\fBABSTRACT SYNTAXES\fR 
	 \fB{\ {\ joint\(hyiso\(hyccitt\fR \fBassociation\(hycontrol(2)\fR \fBabstractSyntax(1)\fR 
.LP
{\ {\ 
\fBapdus(0) version1(1)},\fR 
.LP
{\ 
\fBobjectidentifierOfAbstracSyntax1}\fR 
.LP
	\fB::=\ {objectidentifierOfContext1}\fR 
.PP
The application context \fBcontext2\fR includes the
application\(hyservice\(hyelements ACSE, ROSE, \fBelement2\fR , and \fBelement3\fR 
; the 
bind\(hyoperation \fBBindExample1\fR ; and the unbind\(hyoperation \fBUnbindExample3\fR 
. The association\(hyresponder may invoke the operations \fBoperationExample3\fR 
, 
\fBoperationExample4\fR , \fBoperationExample12\fR and \fBoperationExample51\fR 
. The 
association\(hyinitiator is not allowed to invoke any operation (Association
Class\ 2).
.bp
.LP
	\fBcontext2\fR 	\fBAPPLICATION\(hyCONTEXT\fR 
.LP
\fBAPPLICATION SERVICE ELEMENTS\fR 	\fB{aCSE}\fR 
.LP
	\fBBIND\fR 
	\fBBindExample1\fR 
.LP
	\fBUNBIND\fR 
	\fBUnbindExample3\fR 
.LP
	\fBREMOTE OPERATIONS\fR 
	\fB{rOSE}\fR 
.LP
	\fBINITIATOR CONSUMER OF\fR 	\fB{element3}\fR 
.LP
	\fBRESPONDER CONSUMER OF\fR 	\fB{element2}\fR 
.LP
	\fBABSTRACT SYNTAXES\fR 
	 \fB{\ {\ joint\(hyiso\(hyccitt\fR \fBassociation\(hycontrol(2)\fR \fBabstractSyntax(1)\fR 
.LP
{\ {\ 
\fBapdus(0) version1(1)},\fR 
.LP
{\ 
\fBobjectidentifierOfAbstracSyntax2}\fR 
.LP
	\fB::=\ {objectidentifierOfContext2}\fR 
.PP
The application context \fBcontext3\fR includes the
application\(hyservice\(hyelements ACSE, RTSE, ROSE, and \fBelement2\fR ; the
bind\(hyoperation \fBBindExample1\fR ; and the unbind\(hyoperation \fBUnbindExample3\fR 
. The association\(hyresponder may invoke the operations \fBoperationExample3\fR 
and 
\fBoperationExample4\fR . The association\(hyinitiator is not allowed to 
invoke any 
operation (Association Class\ 2).
.LP
	\fBcontext3\fR 	\fBAPPLICATION\(hyCONTEXT\fR 
.LP
\fBAPPLICATION SERVICE ELEMENTS\fR 
	\fB{aCSE, rTSE}\fR 
.LP
	\fBBIND\fR 
	\fBBindExample1\fR 
.LP
	\fBUNBIND\fR 
	\fBUnbindExample3\fR 
.LP
	\fBREMOTE OPERATIONS\fR 
	\fB{rOSE}\fR 
.LP
	\fBRESPONDER CONSUMER OF\fR 	\fB{element2}\fR 
.LP
	\fBABSTRACT SYNTAXES\fR 	\fB{objectidentifierOfAbstracSyntax3}\fR 
.LP
	\fB::=\ {objectidentifierOfContext3}\fR 
.PP
The application context \fBcontext4\fR includes the
application\(hyservice\(hyelements ACSE, ROSE, and \fBelement2\fR ; the 
bind\(hyoperation 
\fBBindExample3\fR ; and the unbind\(hyoperation \fBUnbindExample3\fR . 
The application 
context \fBcontext3\fR is symmetric, i.e.\ both the association\(hyinitiator 
and the 
association\(hyresponder may invoke the operations \fBoperationExample12\fR and
\fBoperationExample3\fR (Association Class\ 3).
.LP
	\fBcontext4\fR 	\fBAPPLICATION\(hyCONTEXT\fR 
.LP
\fBAPPLICATION SERVICE ELEMENTS\fR 
	\fB{aCSE}\fR 
.LP
	\fBBIND\fR 
	\fBBindExample3\fR 
.LP
	\fBUNBIND\fR 
	\fBUnbindExample3\fR 
.LP
	\fBREMOTE OPERATIONS\fR 
	\fB{rOSE}\fR 
.LP
	\fBOPERATIONS OF\fR 
	\fB{element1}\fR 
.LP
	\fBABSTRACT SYNTAXES\fR 	\fB{objectidentifierOfAbstracSyntax4}\fR 
.LP
	\fB::=\ {objectidentifierOfContext4}\fR 
.PP
The last two examples assume a single named abstract syntax.
.sp 2P
.LP
B.6
	\fIReleasing Application\(hyassociations in an Orderly Way\fR 
.sp 1P
.RT
.sp 1P
.LP
B.6.1
	\fIIntroduction\fR 
.sp 9p
.RT
.PP
This Recommendation defines five Operation Classes based upon the outcomes 
they report, and three Association Classes based upon whether the 
association\(hyinitiator, the association\(hyresponder, or both may invoke
operations. This clause defines the rules that ensure orderly release of
application\(hyassociations and the Operation Classes invoked over it.
.RT
.sp 1P
.LP
B.6.2
	\fIObjectives\fR 
.sp 9p
.RT
.PP
The rules of this paragraph are intended to achieve one of the
following two objectives, depending upon the situation:
.RT
.LP
	a)
	\fIThe Exactly\(hyOnce Objective:\fR \|Ideally an application entity
should be able to count on the invocation of an operation causing that
operation to be performed exactly once, that is, not several times and
not none at all.
.LP
	b)
	\fIThe At\(hyMost\(hyOnce Objective:\fR \|In come circumstances the
Exactly\(hyOnce Objective cannot be achieved. A lesser but still useful
objective is that invoking an operation will cause that operation to
be performed at most once, that is, perhaps not at all but never
twice.
.bp
.sp 1P
.LP
B.6.3
	\fIDefinition of Rules\fR 
.sp 9p
.RT
.PP
The following \fBgeneral rules\fR apply in all circumstances:
.RT
.LP
	G1
	The performer shall report the result or error of each
confirmed operation over the same application\(hyassociation by means of
which the operation was invoked.
.LP
	G2
	The initiator shall not release the application\(hyassociation
until all operations it invoked have been confirmed.
.PP
The following \fBspecific rules\fR apply in certain
circumstances:
.LP
	S1
	Each time it exercises the RO\(hyINVOKE service, the invoker
shall supply a different Invoke\(hyID (unless reattempting an invocation)
even across a succession of application\(hyassociations. This enables the
performer to achieve the At\(hyMost\(hyOnce Objective by suppressing
duplicates.
.LP
	S2
	If the performer encounters a duplicate Invoke\(hyID in the
RO\(hyINVOKE service, it shall exercise the RO\(hyREJECT\(hyU service with
duplicate\(hyinvocation as the Reject\(hyreason. This helps to achieve the
Exactly\(hyOnce Objective.
.LP
	S3
	The association\(hyinitiator shall reject any invocations it
has not performed before releasing the application\(hyassociation.
.LP
	S4
	The association\(hyinitiator shall respond to any invocations
it has performed before releasing the application\(hyassociation.
.sp 1P
.LP
B.6.4
	\fIApplication of Rules\fR 
.sp 9p
.RT
.PP
The general rules always apply. The specific rules govern
application\(hyassociations of particular Association Classes, and operations
(invoked by means of such associations) of particular Operation Classes, as
follows:
.RT
.LP
	a)
	\fIApplication\(hyassociations of Association Class 1:\fR \|For
operations of Operation Classes\ 1 and\ 2, no specific rules apply. For
operations of Operation Class\ 3, 4 and\ 5, specific rules\ S1 and S2
apply.
.LP
	b)
	 \fIApplication\(hyassociations of Association Class 2\fR \fIand 3:\fR 
\|For operations of Operation Classes\ 1 and\ 2, specific 
rules\ S3 and\ S4 apply. (Any invocation issued by the
association\(hyresponder after the association\(hyinitiator has issued a
release are lost. Response\(hyrejects may be lost as well.) For
operations of Operation Class\ 3, 4, and 5, specific rules\ S1, S2, S3
and\ S4 apply.
.PP
For protocols containing only operations of Operation Classes 1 or 2, the 
only constraint upon the values of the Invoke\(hyIDs the invoker supplies 
to the RO\(hyINVOKE service is that they be distinct over the life of the 
application\(hyassociation.
.PP
Application\(hyentities make Invoke\(hyIDs unique to an invoker and across 
consecutive application\(hyassociations by exchanging presentation\(hyaddresses 
at 
application\(hyassociation establishment time and, for each presentation\(hyaddress, 
making Invoke\(hyIDs integers that increase monotonically over some reasonable 
long period of time.
.PP
To ensure that an operation of Operation Classes 3, 4, or 5 has been performed 
exactly once, an application\(hyentity shall elicit the 
duplicate\(hyinvocation Reject\(hyreason by invoking the operation twice 
(or more) 
with the same Invoke\(hyID. Otherwise, the At\(hyMost\(hyOnce Objective 
is all that is assured, suggesting that, on average, the invoker does not 
care whether a 
non\(hyconfirmed operation is perfomed.
.RT
.sp 1P
.LP
B.6.5
	\fIObservations\fR 
.sp 9p
.RT
.PP
Every operation of Operation Classes 1 or 2 is performed exactly
once.
.PP
The usefulness of non\(hyconfirmed operations or conditionally confirmed 
operations may depend on the specific application. Protocol designers should 
be advised to define only operations of Operation Classes\ 1 or\ 2 unless 
some very specialized requirements exists. 
.RT
.sp 1P
.ce 1000
.sp 1P
.RT
.ce 0
.sp 1P
.LP
.bp
