Click here to Skip to main content
15,891,427 members
Home / Discussions / C#
   

C#

 
QuestionFingerPrint readers Pin
Dirso21-Jul-08 10:09
Dirso21-Jul-08 10:09 
AnswerRe: FingerPrint readers Pin
Bert delaVega21-Jul-08 17:11
Bert delaVega21-Jul-08 17:11 
QuestionWord Processing (Office 2007) for .NET Pin
JPWheeler21-Jul-08 9:07
JPWheeler21-Jul-08 9:07 
AnswerRe: Word Processing (Office 2007) for .NET Pin
Thomas Stockwell21-Jul-08 9:31
professionalThomas Stockwell21-Jul-08 9:31 
AnswerRe: Word Processing (Office 2007) for .NET Pin
Green Fuze21-Jul-08 12:24
Green Fuze21-Jul-08 12:24 
Questionconvert the pdf file to txt file Pin
Member 226808621-Jul-08 7:38
Member 226808621-Jul-08 7:38 
AnswerRe: convert the pdf file to txt file Pin
DaveyM6921-Jul-08 8:34
professionalDaveyM6921-Jul-08 8:34 
QuestionWeb service calling business logic Pin
Gktony21-Jul-08 6:39
Gktony21-Jul-08 6:39 
Hi all,

I need to call a business logic class via web servicing without using reflection. I pass the class name and method as string parameters in the web service. But it doesn't work the conversion from string to an object.
If I pass the object class then it works but I don't want to do that as the webservice must run independently
The code I use is,

[WebMethod]
public object ExecuteMethod(string ClassName, string MethodName, params object[] arguments)
{
object obj = null;
Type type = Type.GetType(ClassName);

try
{
obj = type.InvokeMember(MethodName, BindingFlags.Default |
BindingFlags.InvokeMethod, null, null, arguments);
}
catch
{
throw;
}
return obj;
}

Thanks in advance
AnswerRe: Web service calling business logic Pin
leppie21-Jul-08 14:49
leppie21-Jul-08 14:49 
GeneralRe: Web service calling business logic Pin
Gktony21-Jul-08 20:53
Gktony21-Jul-08 20:53 
QuestionImplementing IWebBrowser2 on WebBrowser control? Pin
Christopher Duncan21-Jul-08 6:16
Christopher Duncan21-Jul-08 6:16 
AnswerRe: Implementing IWebBrowser2 on WebBrowser control? Pin
led mike21-Jul-08 6:59
led mike21-Jul-08 6:59 
GeneralRe: Implementing IWebBrowser2 on WebBrowser control? Pin
Christopher Duncan21-Jul-08 7:12
Christopher Duncan21-Jul-08 7:12 
GeneralRe: Implementing IWebBrowser2 on WebBrowser control? Pin
led mike21-Jul-08 7:40
led mike21-Jul-08 7:40 
GeneralRe: Implementing IWebBrowser2 on WebBrowser control? Pin
Christopher Duncan21-Jul-08 8:24
Christopher Duncan21-Jul-08 8:24 
QuestionSystem.Net.Socket.Connected Pin
Jason McBurney21-Jul-08 5:58
Jason McBurney21-Jul-08 5:58 
AnswerRe: System.Net.Socket.Connected Pin
led mike21-Jul-08 7:16
led mike21-Jul-08 7:16 
GeneralRe: System.Net.Socket.Connected Pin
DaveyM6921-Jul-08 8:14
professionalDaveyM6921-Jul-08 8:14 
AnswerRe: System.Net.Socket.Connected Pin
nelsonpaixao21-Jul-08 13:10
nelsonpaixao21-Jul-08 13:10 
Questionstructured storage API Pin
Miss_hacker21-Jul-08 5:58
Miss_hacker21-Jul-08 5:58 
AnswerRe: structured storage API Pin
led mike21-Jul-08 6:57
led mike21-Jul-08 6:57 
GeneralRe: structured storage API Pin
Miss_hacker21-Jul-08 7:53
Miss_hacker21-Jul-08 7:53 
GeneralRe: structured storage API Pin
led mike21-Jul-08 7:59
led mike21-Jul-08 7:59 
GeneralRe: structured storage API Pin
DaveyM6921-Jul-08 8:21
professionalDaveyM6921-Jul-08 8:21 
GeneralRe: structured storage API Pin
Miss_hacker21-Jul-08 19:32
Miss_hacker21-Jul-08 19:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.