Jump to content
Xtreme .Net Talk

dynamic runtime object types w/ web services


Recommended Posts

Guest schreiter
Posted

Not sure how to ask this question, but here it goes:

 

I'm creating a windows service that references a web service. I would like to pass the servername.service() as a startup paramater argument for the windows service. Typically, in order to reference that service, however, you need to "Add Web Reference" and put some code like

 

dim objTest as new server.service()

objtest.servicename()

 

 

in order to invoke the web service functions. Is there a way to dynamically create objTest's type like

 

Protected Overrides Sub OnStart(ByVal args() As String)

 

Dim jon As String

jon = CStr(args(0))

 

Dim objtest As New jon

objtest.servicename()

End Sub

 

Or is there some other method that I'm totally missing here to call web services' names dynamically on runtime?

 

Thanks!

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...