Jump to content
Xtreme .Net Talk

Late Binding With Remoting Data Type


Recommended Posts

Guest schreiter
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...