IiopWWServerBind Function

Action

Returns a handle to a proxified server object that is protected by the Wonderwall.

注: You should use this function only for earlier versions than Wonderwall 3.0. For Wonderwall 3.0 and later versions, use the common CORBA functions.

Include file

Wonderwall.bdh

Syntax

IiopWWServerBind(in hDaemon : number,
in sHost : string,
in sServer : string,
in sMarker : string,
in sIfrName : string): number;

Return value

Handle to a proxified server object

Parameter Description
hDaemon Handle to the proxified Orbix Daemon object.
sHost Server host.
sServer Server name.
sMarker Marker name of the object. If NULL, any Orbix(Web) object will match.
sIfrName Interface Repository name of the object. Pass only the object name to the function, neither the "IDL:" prefix, nor the "1.2" suffix.

Example

dcltrans
transaction TWWRequest
const
WW_HOST := "192.168.20.35"; // Wonderwall host
WW_PORT := 16000; // Wonderwall port
HOST := "192.168.20.21"; // server
PORT := 1052; // port
var
hDaemon, hBank, hAccount : number;
begin
IiopSetMaxGiopVersion("1.2");
IiopSetByteOrder(IIOP_BIG_ENDIAN);
IiopWWBind(WW_HOST, WW_PORT);
// OrbixWeb bootstrapping with Wonderwall
hDaemon := IiopWWDaemonBind(HOST, PORT);
// get proxy object reference to bank object
hBank := IiopWWServerBind(hDaemon, HOST, "bank", "", "bank");
// Create an account
IiopSetString(hBank, "John Dow");
IiopWWRequest(hBank, "newAccount");
// extract new account object
IiopWWGetObject(hBank, hAccount);
...
end TWWRequest;