You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Malte Marquarding <ma...@gmail.com> on 2008/03/12 04:26:35 UTC

python client

Hi,

I thought I could use extensions directly though the sca and didn't have to
go via web services, but when I try to use a python client to the
CppCalculator example it doesn't seem to marshall types

Using SCA installed at /usr/local/tuscany/sca
Using SDO installed at /usr/local/tuscany/sdo
CalculatorImpl::add 0.000000 + 0.000000 = 0.000000
calculator_client_py:  add ( 2.0 , 2.0 ) =  1.15755100425e-39
CalculatorImpl::add 2.000000 + 2.000000 = 4.000000
calculator_client_cpp: add(2,2) = 4

Should this work?

I also added an integer add to the CppCalculator, where it handles the
arguments, but not the return type?

CalculatorImpl::iadd 2 + 2 = 4
<type 'NoneType'> None


(I am using tuscany_sca_native-1.0-incubator-M3)


Cheers,
Malte