IiopObjectGetProfile Function

Action

Retrieves an IIOP profile from an IOR. IIOP profiles are used to identify individual objects accessible through IIOP.

Include file

IIOP.bdh

Syntax

IiopObjectGetProfile( in  hIiop       : number,
                      in  nProfile    : number,
                      out nTag        : number,
                      out sData       : string,
                      in  nBufferSize : number optional,
                      out nLen        : number optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object.
nProfile

Index of the profile. Set this parameter to IIOP_FIRST or IIOP_LAST for the first or the last profile, respectively.

The index of the first profile is zero (0).

nTag Number variable receiving the profile tag. Profile tags are described in the CORBA specification.
sData Buffer receiving the profile data.
nBufferSize Size of the buffer that receives the profile data in bytes (optional).
nLen Variable receiving the amount of profile data (in bytes) that was copied into the buffer (optional).

Example

var
  hSSLBank, hCombined: number;

dcltrans
  transaction TMain
  var
    sData : string;
    nType : number;
  begin
    // create an empty object
    IiopObjectCreate(hCombined, "", "", "", 0, "", 0);
    
    // copy profile of bank object using SSL
    IiopObjectGetProfile(hSSLBank, IIOP_FIRST, nType, sData);
    IiopObjectSetProfile(hCombined, IIOP_NO_REPLACE, nType, sData);
    IiopSetString(hCombined, "James Smith");
    IiopRequest(hCombined, "open");
  end TMain;