[omniORB] TypeCodes, tk_alias, OmniORB, and JacORB
Duncan Grisby
dgrisby@uk.research.att.com
Thu, 07 Dec 2000 14:09:15 +0000
On Monday 4 December, "Monceaux, Weston P ERDC-ITL-MS Contractor" wrote:
> Apologies for the HTML.
You are still sending HTML...
[...]
> any is of type tk_sequence
> tk_sequence
> Maximum length: 0
> Unbounded Sequence.
> Content Type:
> tk_struct
> Repository Id: IDL:FrameworkServices/TraderEntrySeq:1.0
> Struct Name: TraderEntry
> Number of members: 12
> Member index: 0.
> Member name: object_ref
>
> Member typecode:
> tk_string
> Maximum length: 0
>
> Member index: 1.
> Member name: name
Hmm. In your original message, you said the structure was
struct TraderEntry
{
string name;
string summary;
string help_url;
string ui_url;
string host;
string email_contact;
string language;
string type;
double quality;
};
But the TypeCode you are receiving says the first member of the
structure is an object reference called "object_ref". Do you have a
mismatch in the IDL between JacORB and omniORB? That would explain
why the extraction was failing.
What does parseCode() print is you give it _tc_TraderEntrySeq? It
should match the one you get in the any, ignoring any aliases.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --