The present invention dynamically brokers object messages between object
models. An mediating component provides a bridge between object models
such that messages can be transmitted in either direction between object
models. The mediating component can be resident on a client machine, a
server machine, or both. The mediating component can be used as a bridge
between two instances of the same object model running on different
machines. Thus, network communication is made possible for objects of an
object model that otherwise lacks a networking capability. The mediating
component maps a client object to a server object through proxy objects
and stub objects. The proxy object always responds affirmatively when
queried by a client object whether a server object can execute a
particular method. A client object's message is forwarded to a server
object. The mediating component performs any necessary translation of
arguments or format of the message. In addition, the mediating component
translates a server object's response.