N
Nightfall
Dear friends,
consider the following scenario, in Visual Studio 2005 and C#
- I create a ASP.NET web service ("server") with a class MyClass and a
WebMethod SomeMethod()
- I create a client application, using "Add web reference..." and
specifying some web reference name "MyName"
Normally I would do:
MyName.MyClass foo = new MyName.MyClass();
SomeType bar = foo.SomeMethod();
Now, instead, suppose that I have a STRING s = "MyName.MyClass" and
that I want to be able to do the same as above. How can I do?
Please, please provide some code. I know I need reflection and tried
many examples by Googling the Internet, but I can't succeed...
consider the following scenario, in Visual Studio 2005 and C#
- I create a ASP.NET web service ("server") with a class MyClass and a
WebMethod SomeMethod()
- I create a client application, using "Add web reference..." and
specifying some web reference name "MyName"
Normally I would do:
MyName.MyClass foo = new MyName.MyClass();
SomeType bar = foo.SomeMethod();
Now, instead, suppose that I have a STRING s = "MyName.MyClass" and
that I want to be able to do the same as above. How can I do?
Please, please provide some code. I know I need reflection and tried
many examples by Googling the Internet, but I can't succeed...