IiopGetObject Function

Action

Retrieves an object return parameter from a CORBA object. This function can be used to get the return parameters of an operation.

Include file

IIOP.bdh

Syntax

IiopGetObject( in    hIiop   : number,
               inout hObject : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object
hObject Variable receiving the object associated with the CORBA object

Example

dcltrans
  transaction TMain
  const
    HOST   := "192.168.20.21"; // server
    PORT   := 1052; // port
    KEY    := "...\h00" // key
    KEYLEN := 4; // key length
  var
    hIiop, hObject: number; // Handle to CORBA object
  begin
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);

    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",
                     HOST, PORT, KEY, KEYLEN);

    // call request "Duplicate"
    IiopRequest(hIiop, "Duplicate");

    // retrieve object return parameter
    IiopGetObject(hIiop, hObject);
    IiopObjectRelease(hIiop);
  end TMain;

Sample scripts

UnivB.bdf, AnyDemo.bdf, AsyncBank.bdf, Bank.bdf, SimpleAsyncBank.bdf, AsyncFact.bdf, AsyncOdb.bdf, Conf.bdf, Factory.bdf, Odb.bdf, Vbrokerbank01.bdf, Vbrokerbank02.bdf, VBrokerBankGate.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba