I can't figure out where I'm mishandling ice_checkedCast.
Real simple script:
PHP Code:
Ice_loadProfile("Test");
$proxy = $ICE->stringToProxy("test:tcp -p 12001"); // i called this "test" when i added it to the server's adaptor
$proxy = $proxy->ice_checkedCast("TestServer::TestClass");
$proxy->write("Test");
Fails on write() with Fatal error: main(): unknown operation in c:\Code\www\docroot\icetest.php on line 6
before write() is performed, $proxy is still an Ice_ObjectPrx Object and a typed proxy. The manual leads me to believe that checkedCast is failing and thus returning a null proxy. If I put in anything but TestServer::TestClass I get an error that there is no slice defined, as one would expect.
Here's the slice, let me know what you think.
Code:
module TestServer {
interface TestMethods {
string getString();
int getInt();
};
class TestObject implements TestMethods
{
int id;
};
interface TestClass
{
void throwError();
TestObject getObject(int id);
int getInt();
};
};