OSI/MHS Gateway Programmatic Interface (GPI) Reference Manual

Object Classes and Attribute Types
OSI/MHS Gateway Programmatic Interface (GPI) Reference Manual522223-001
3-142
EDI-C-EDI-BODYPART
Attributes that have the syntax OM-S-ONFILE-STRING are treated as long strings,
regardless of their actual length: that is, they are treated as if they were longer than
the specification of the max-string-len parameter of GPI_INITIALIZE_. Thus, you
can use only the procedure calls GPI_OM_READ_ and GPI_OM-WRITE_ to read
and write the values of strings that have the syntax OM-S-ONFILE-STRING.
EDI-C-EDI-BODYPART
This class of object contains a single EDI interchange.
Table 3-101
describes the attribute types for this class and the syntax, length, and
number of values for each type.
Some attribute types have additional value characteristics, as shown in Table 3-102
.
Meanings of Attributes
The first attribute type specifies the following information:
EDI-T-BODY
Contains the EDI interchange in whatever EDI format the receiving application can
understand. GPI expects it in octet string format and will encode it in ASN.1 octet string
for you.
Implementation and Usage Note
OM-S-ONFILE-STRING is a value syntax that applies to messages exceeding 64
kilobytes.
For the attribute EDI-T-BODY, this value syntax is an alternative to OM-S-OCTET-
STRING.
When this attribute has the syntax OM-S-ONFILE-STRING, the GPI library stores
the value in a file, and the value retains the characteristics of its primary syntax.
Table 3-101. EDI-C-EDI-BODYPART Attributes—General Characteristics
Attribute Type Value Syntax
Value
Length
Number of
Values
EDI-T-BODY OM-S-OCTET-STRING
or
OM-S-ONFILE-STRING
- - 1
OM-T-CLASS OM-S-OBJECT-ID-STRING 7 1
Table 3-102. EDI-C-EDI-BODYPART Attributes—Additional Characteristics
Attribute Type Value Characteristics
OM-T-CLASS Max. Value Length: ZGPI-EDI-CLASS-OBJ-ID-LEN