[omniORB] How to call omniORBpy-client method with multiple parameters

Georg Lohrer GeorgLohrer@web.de
Thu, 5 Jul 2001 08:55:40 +0200


I need help with the following call of a CORBA-interface method:

The IDL looks like:

module foo {
       struct fooStruct {
              int i1;
              int i2;
       };
       oneway void fooMethod(in unsigned long, in fooStruct);
}

After creating the appropriate servant and waiting for requests
I tried to call with the matching client and create the
in-data as following:

        i1 =3D 1
        fs =3D foo.fooStruct(2,3)
        foo=5Fclient((i1, fs))

I got the error:

*** TypeError: Operation requires 2 arguments; 1 given

Ah, I change to:=20

        foo=5Fclient(i1, fs)

but I got:

*** BAD=5FPARAM: Minor: 0, Completed: COMPLETED=5FNO.

The examples only have a single parameter as in-data.=20
How can I call the client's method with multiple parameters=3F
Any ideas are appreciated.

Ciao, Georg

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Der Aktien-Service, der f=FCr Sie aktiv ist! Automatische Berechnungen,=20
Mail-Benachrichtigung. F=FCr Ihre Bed=FCrfnisse!  http://boerse.web.de/