dynamic runtime object types w/ web services

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

schreiter

Guest
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
 
Back
Top