Implementing the Client in C++, using the DII
ifstream in(“Hello.ref”);
CORBA_Object_var obj = orb -> string_to_object(s);
CORBA_Request_var req = obj -> _request(“print”);
req -> add_in_arg() <<= (const char*)“Hello World!”;
Read “stringified” object reference
No “narrow” to obtain derived interface type, since the stub is not available
Invoke method, using the DII
- Create request object
- Add arguments
- Invoke the request