IDL template types

The Interface Definition Language (IDL) defines two template types not found in C and C++: sequences and strings. A sequence is a one-dimensional array with two characteristics: an optional maximum size (specified at compile time) and a length (determined at run time). Sequences permit passing unbounded arrays between objects. Sequences are specified as follows:

sequence simple-type [, positive-integer-const]

where simple-type specifies any valid IDL typeand the optional positive-integer-const is a constant expression that specifies the maximum size of the sequence (as a positive integer).

A string is similar to a sequence of type char. It can contain all possible 8-bit quantities except NULL. Strings are specified as follows:

string [ positive-integer-const ] 

where the optional positive-integer-const is a constant expression that specifies the maximum size of the string (as a positive integer, which does not include the extra byte to hold a NULL as required in C or C++).

Since CORBA gives no specific rules on how to process blanks contained within strings, IBM WebSphere Application Server treats

"ABC"
and
"ABC   "
as referring to different managed objects. If you do not want blanks to be treated as significant pre-process your code to either remove trailing blanks or add trailing blanks to some fixed string length.


Related reference
IDL type declarations



Searchable topic ID:   rcor_idltc8
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_idltc8.html

Library | Support | Terms of Use | Feedback