IiopSetPrincipal Function

Action

Specifies the principal setting sent along with request messages to the server. This setting may be used as client identification by the ORB.

Include file

IIOP.bdh

Syntax

IiopSetPrincipal( in sPrincipal    : string,
                  in nPrincipalLen : number optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sPrincipal Buffer containing the principal setting.
nPrincipalLen Length of the principal setting (optional).

Example

dcltrans
  transaction TInit
  const
    PRINCIPAL := "username" "\h00";
  begin
    // general settings
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);

    if IiopSetPrincipal(PRINCIPAL)then
      writeln("principal successful set");
    end;
  end TInit;

Output

principal successful set

Sample scripts

UnivB.bdf, AnyDemo.bdf, AsyncBank.bdf, Bank.bdf, Callback.bdf, SimpleAsyncBank.bdf, TypeTest.bdf

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