Specifies the principal setting sent along with request messages to the server. This setting may be used as client identification by the ORB.
IIOP.bdh
IiopSetPrincipal( in sPrincipal : string, in nPrincipalLen : number optional ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
sPrincipal | Buffer containing the principal setting. |
nPrincipalLen | Length of the principal setting (optional). |
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;
principal successful set
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