[omniORB] Date: Mon, 4 Dec 2000 05:40:42 -0600

Monceaux, Weston P ERDC-ITL-MS Contractor Weston.P.Monceaux@erdc.usace.army.mil
Mon, 04 Dec 2000 11:40:59 +0000


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.0E2F5D2C
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.0E2F5D2C
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></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.&nbsp; Things have been working well =
with the exception of dealing with Any's.&nbsp; 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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string name; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string =
summary; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string =
help_url; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string =
ui_url; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string host; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string =
email_contact; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string =
language; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string type; =
</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double =
quality; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">}; </FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">typedef sequence&lt;TraderEntry&gt; =
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.&nbsp; The best I can determine is that it is =
a mis-matching of TypeCodes.&nbsp; 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.&nbsp; Anyone else running across similar =
problems?&nbsp; 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.0E2F5D2C--