Hi All,<br><br>I am trying to communicate between a client and server located in different address spaces using the CORBA Naming service. Since I am a newbie to omniORB and CORBA, I tried the example given in the page <a href="http://omniorb.sourceforge.net/omnipy2/omniORBpy/omniORBpy002.html">http://omniorb.sourceforge.net/omnipy2/omniORBpy/omniORBpy002.html</a> . The IDL definition of this example goes like this:<br>
<pre>module Example {<br>  interface Echo {<br>    string echoString(in string mesg);<br>  };<br>};<br></pre>The definition of echoString is given by,<br><pre>class Echo_i (Example__POA.Echo):<br>    def echoString(self, mesg):<br>
        print &quot;echoString() called with message:&quot;, mesg<br>        return mesg<br></pre>This example works just fine without any modifications. However, if i try to change the parameters of the method &#39;echoString&#39; from string to a sequence, I get CORBA_BAD_PARAM error. <br>
Here is the new IDL and piece of client code where i invoke the method echoString.<br>module Example {<br>&nbsp; typedef sequence&lt;string&gt; sample;<br>&nbsp; interface Echo {<br>&nbsp;&nbsp;&nbsp; void echoString(inout sample mesg);<br>&nbsp; };<br>
};<br>.. client code:<br>message = [&quot;hello&quot;] #python list<br>result&nbsp; = eo.echoString(message)<br>print &quot;I said &#39;%s&#39;. The object said &#39;%s&#39;.&quot; % (message,result)<br><br>I referred to the CORBA-Python mapping document which says that list and tuples are the equivalent objects of CORBA sequence. However, when I run the server and client, it throws the error omniORB.CORBA.BAD_PARAM: CORBA.BAD_PARAM(omniORB.BAD_PARAM_WrongPythonType, CORBA.COMPLETED_MAYBE). <br>
<br>Could anyone please help me in getting rid of this error? I would like to know how to pass python list objects between CORBA client and server through omniORB.<br><br>Thank you,<br>Deepan<br><br>