[omniORB] omniorb_py and trading service

Bernd Winterstein bernd.winterstein at vodafone.com
Thu Jun 26 09:21:38 BST 2003


Hi.
I have a problem accessing the TradingService from python. Maybe anyone 
has a good idea.

Bernd

trader_obj = orb.resolve_initial_references("TradingService")
lookup     = trader_obj._narrow(CosTrading.Lookup)
if lookup is None : raise AssertionError

policies = None
desiredProps = None
offers = None
iterator = None
appliedPolicies = None



lookup.query("ExampleService", "TRUE", "", policies, desiredProps, 1, 
offers, iterator, appliedPolicies )
Traceback (most recent call last):
  File "./ExampleClient.py", line 51, in ?
    lookup.query("ExampleService", "TRUE", "", policies, desiredProps, 
1, offers, iterator, appliedPolicies )
  File 
"/home/tesp/bwinters/ld/omniorb_py/lib/python2.2/site-packages/omniORB/COS/CosTrading_idl.py", 
line 906, in query
    return _omnipy.invoke(self, "query", _0_CosTrading.Lookup._d_query, 
args)
TypeError: Operation requires 6 arguments; 9 given







More information about the omniORB-list mailing list