Przykład:
hello(CORBA::Object_ptr obj) {
Echo_var e = Echo::_narrow(obj);
cerr << “hello: cannot invoke on nil.” << endl;
CORBA::String_var src = (const char*) “Hello!”;
dest = e->echoString(src);
cerr << “I said, \”” << src << “\”.”
<< “ The object said, \”” << dest << “\”.” << endl;