Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Web Service
Message
 
To
12/12/2003 10:48:02
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00858600
Message ID:
00858762
Views:
17
What are you doing exactly when you say there are no errors when it is compiled? A Web Service proxy is code that needs to get compiled so it surely won't run or load without compilation...

If you want to dynamically access a Web Service where the definition is not known beforehand you will need to build your SOAP calls manually.

Alternately you can dynamiocally gen the proxy and then compile it on the fly using the CodeDom...


+++ Rick ---


>I am creating web services on the fly and I am having trouble creating an instance of the object. It comes up with the error when executing this line:-
>
> Dim t As Type = assembly.GetType("RMBC.Webservice.DynamicProxy." + objTypeName)
>
>after executing this statement t is still nothing. Can you tell me what I
>am doing wrong. There are no errors when it is
>compiled.
>
>
>The message that I receive is:
>
>
> System.ArgumentNullException: Value cannot be null.
>Parameter name: type
> at System.Activator.CreateInstance(Type type, Boolean nonPublic)
> at System.Activator.CreateInstance(Type type)
> at RMBC_JobScheduler.DynamicProxyClass.CreateInstance(String objTypeName)
>in c:\inetpub\wwwroot\RMBC_JobScheduler\DynamicProxyClass.vb:line 236
> at RMBC_JobScheduler.DynamicProxyClass.Invokecall() in
>c:\inetpub\wwwroot\RMBC_JobScheduler\DynamicProxyClass.vb:line 79
> at RMBC_JobScheduler.JobScheduler.ExecuteProgram() in
>c:\inetpub\wwwroot\RMBC_JobScheduler\JobScheduler.asmx.vb:line 220
> at RMBC_JobScheduler.JobScheduler.RunJob() in
>c:\inetpub\wwwroot\RMBC_JobScheduler\JobScheduler.asmx.vb:line 177
>
>when it is executing this statement:
>
> Return Activator.CreateInstance(t)
>
>I appreciate your help. Thank you.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform