PK
2010-05-18 16:00:27 UTC
Hello,
Continuation of the problem regarding the TypeCode in the Any.
I tried the following:
CORBA::TypeCode_var tc_any_a = orb->create_alias_tc("IDL:c/*l*/*c*/*s*
/aList:1.0","alist",CORBA::_tc_any);
CORBA::StructMemberSeq a_tc_members;
a_tc_members.length(4);
a_tc_members[0].name = CORBA::string_dup("n");
a_tc_members[0].type = CORBA::TypeCode::_duplicate(CORBA::_tc_string);
a_tc_members[1].name = CORBA::string_dup("v");
a_tc_members[1].type = tc_any_a;
a_tc_members[2].name = CORBA::string_dup("f");
a_tc_members[2].type = CORBA::TypeCode::_duplicate(CORBA::_tc_long);
a_tc_members[3].name = CORBA::string_dup("l");
a_tc_members[3].type = CORBA::TypeCode::_duplicate(CORBA::_tc_short);
CORBA::TypeCode_var tc_a= orb->create_struct_tc("IDL:c/*l*/*c*/*s*
/a:1.0","a",a_tc_members);
CORBA::TypeCode_var tc_alist= orb->create_sequence_tc(0, tc_a);
DynamicAny::DynAny_var dv = daf->create_dyn_any_from_type_code(tc_alist);
My intention was to correctly insert the TypeCode information into the ?a?.
The output was the same, no Type description nor Id related to the list or
the listlist TypeCode was found in the logs.
How can I insert the correct alias information to the request? The server
side cannot interpret the request I am sending. Am I misunderstanding
something?
Thanks in advance for the help.
Best Regards
PK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20100518/3abcf9c1/attachment-0001.htm
Continuation of the problem regarding the TypeCode in the Any.
I tried the following:
CORBA::TypeCode_var tc_any_a = orb->create_alias_tc("IDL:c/*l*/*c*/*s*
/aList:1.0","alist",CORBA::_tc_any);
CORBA::StructMemberSeq a_tc_members;
a_tc_members.length(4);
a_tc_members[0].name = CORBA::string_dup("n");
a_tc_members[0].type = CORBA::TypeCode::_duplicate(CORBA::_tc_string);
a_tc_members[1].name = CORBA::string_dup("v");
a_tc_members[1].type = tc_any_a;
a_tc_members[2].name = CORBA::string_dup("f");
a_tc_members[2].type = CORBA::TypeCode::_duplicate(CORBA::_tc_long);
a_tc_members[3].name = CORBA::string_dup("l");
a_tc_members[3].type = CORBA::TypeCode::_duplicate(CORBA::_tc_short);
CORBA::TypeCode_var tc_a= orb->create_struct_tc("IDL:c/*l*/*c*/*s*
/a:1.0","a",a_tc_members);
CORBA::TypeCode_var tc_alist= orb->create_sequence_tc(0, tc_a);
DynamicAny::DynAny_var dv = daf->create_dyn_any_from_type_code(tc_alist);
My intention was to correctly insert the TypeCode information into the ?a?.
The output was the same, no Type description nor Id related to the list or
the listlist TypeCode was found in the logs.
How can I insert the correct alias information to the request? The server
side cannot interpret the request I am sending. Am I misunderstanding
something?
Thanks in advance for the help.
Best Regards
PK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20100518/3abcf9c1/attachment-0001.htm