IiopObjectByIor Function

Action

Establishes an object handle that is used in all CORBA functions in a Silk Performer script to reference to CORBA objects.

Include file

IIOP.bdh

Syntax

IiopObjectByIor( inout hIiop   : number,
                 in  sIor      : string,
                 in  nIorLen   : number optional ):boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Variable receiving a handle to the CORBA object
sIor

IOR identifying the CORBA object. The following formats are valid:

binary: "\h1100000049444c3a5479706554657374" "\h3a312e30000000000100000000000000" "\h5e000000010102000f0000003139322e" "\h3136382e32302e3132390000270f0000" "\h1b0000003a3e0231310c000000004a02" "\h00002900000008000000000000000000" "\h02000000000000000800000001000000" "\h415f5449060000000600000001000000" "\h1100"

stringified: "IOR:010000001100000049444c3a5479706554657374" "3a312e300000000001000000000000005e0000000101" "02000f0000003139322e3136382e32302e3132390000" "270f00001b0000003a3e0231310c000000004a020000" "29000000080000000000000000000200000000000000" "0800000001000000415f544906000000060000000100" "00001100"

URL: stored in a file: "FILE://c:/init.ior"

nIorLen Length of sIor.

Example

dcltrans
  transaction TMain
  var
    hIiop: number;
  begin
    IiopObjectByIor(hIiop, "HTTP://www.inprise.com:15000/gatekeeper.ior");
    ... 
    IiopObjectRelease(hIiop);
  end TMain;