Late Binding With Remoting Data Type

  • Thread starter Thread starter schreiter
  • Start date Start date
S

schreiter

Guest
I am trying to implement remoting in VB .NET. I have a client windows
appplication that needs to dynamically create a new local instance of a
remoting object (sourced from a host windows service on another computer)
based on some dynamic function (such as in my case the client queries a web
service and the web service returns the data type to be created as a string)
The client does not know what object it will need to create at runtime. I
would like some code to work sort of like this on the client:

assuming i have a link to the remoting host server like:
RemotingConfiguration.RegisterWellKnownClientType(GetType(DistObjects.HomeSe
rvice), "tcp://myserver:8085/SomeService")

-- wishful code below --

dim objecttype as string
objectname="some remote object type"

dim remotedobj as object
remoteobj = new objecttype

remoteobj.invokemethods

Maybe I'm completely off and there is an easier way to do this. Any ideas?

Regards,
Jonathan
 
Back
Top