[omniORB] TypeCodes, tk_alias, OmniORB, and JacORB
   
    Monceaux, Weston P ERDC-ITL-MS Contractor
     
    Weston.P.Monceaux@erdc.usace.army.mil
       
    Mon, 4 Dec 2000 05:42:46 -0600
    
    
  
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C05DE7.55D4E7BE
Content-Type: text/plain;
	charset="iso-8859-1"
Hello. 
I have been using JacORB 1.2.3 and OmniORB 3.0.2 in a current project.
Things have been working well with the exception of dealing with Any's.
Here is some sample code:
// IDL 
struct TraderEntry 
{ 
        string name; 
        string summary; 
        string help_url; 
        string ui_url; 
        string host; 
        string email_contact; 
        string language; 
        string type; 
        double quality; 
}; 
        
typedef sequence<TraderEntry> TraderEntrySeq; 
// end IDL 
I am inserting a TraderEntrySeq into and Any in my Java code using JacORB,
and trying to extract it from a C++ client using OmniORB.  The best I can
determine is that it is a mis-matching of TypeCodes.  JacORB reports the
type as tk_alias while the C++ client reports it is receiving a tk_sequence
instead of the tk_alias it is expecting.  Anyone else running across similar
problems?  Any suggestions?
Thanks.
Weston Monceaux
------_=_NextPart_001_01C05DE7.55D4E7BE
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>TypeCodes, tk_alias, OmniORB, and JacORB</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Hello. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I have been using JacORB 1.2.3 and =
OmniORB 3.0.2 in a current project.  Things have been working well =
with the exception of dealing with Any's.  Here is some sample =
code:</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">// IDL </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">struct TraderEntry </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">{ </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string name; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string =
summary; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string =
help_url; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string =
ui_url; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string host; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string =
email_contact; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string =
language; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        string type; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        double =
quality; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">}; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">typedef sequence<TraderEntry> =
TraderEntrySeq; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">// end IDL </FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">I am inserting a TraderEntrySeq into =
and Any in my Java code using JacORB, and trying to extract it from a =
C++ client using OmniORB.  The best I can determine is that it is =
a mis-matching of TypeCodes.  JacORB reports the type as tk_alias =
while the C++ client reports it is receiving a tk_sequence instead of =
the tk_alias it is expecting.  Anyone else running across similar =
problems?  Any suggestions?</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Weston Monceaux</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C05DE7.55D4E7BE--