simply to say:
slice code on server side:
---------------------------------------------------
interface IAddress
{
TEnterpriseInfo getEnterpriseInfo(string telno)
}
class TEnterpriseInfo
{
string name;
string code;
}
---------------------------------------------------
client code:
---------------------------------------------------
addrPrx = IAddressPrx.checkedCast(proxy)
if not addrPrx:
print args[0] + ": invalid proxy"
return 1
print "start..."
try:
a = addrPrx.getEnterpriseInfo("111")
print a.name
except:
traceback.print_exc()
---------------------------------------------------
the server side was written by C++ and works well.and someone else wrote a simple client to test the server in C++ ,also works well
and now i wrote a client in Python,it throws such Exception:
================================================
start...
Traceback (most recent call last):
File "testAddr.py", line 27, in run
a = addrPrx.getEnterpriseInfo("111")
File "IAddress.ice", line 1460, in getEnterpriseInfo
UnmarshalOutOfBoundsException: exception ::Ice::UnmarshalOutOfBoundsException
{
reason =
}
================================================
why??who knows..pls help me figure out the problem.thx a lot

Reply With Quote
