Web service to call business logic class
-
I need to create a web service to call a business logic class without using reflection. Can someone send me a sample Thanks
heres a sample for you :)
public answerToQuestion TryToGetHelpFromCP(string question)
{
if(you.isLazy)
{
return new answerToQuestion("Flames Like This");
}
else
{
return CPiansConsiderQuestion(question); // returnes an answer if there is one available
}
}Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
heres a sample for you :)
public answerToQuestion TryToGetHelpFromCP(string question)
{
if(you.isLazy)
{
return new answerToQuestion("Flames Like This");
}
else
{
return CPiansConsiderQuestion(question); // returnes an answer if there is one available
}
}Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
Can the administrator block such kind of provocative replies please. Also the person who send it should be removed. This suppose to be a serious site
-
Can the administrator block such kind of provocative replies please. Also the person who send it should be removed. This suppose to be a serious site
Gktony wrote:
Can the administrator block such kind of provocative replies please.
And how would you suggest they do that? Delete the message maybe but block it all together?
Gktony wrote:
Also the person who send it should be removed.
I have a name you know. and in my opinion YOU should be removed
Gktony wrote:
This suppose to be a serious site
yes, its supposed to be... BUT you coming here demanding code for a very vague "question" isnt very serious! This is a FORUM where we discuss specific programming problems you might have come across. This is NOT some place where you can demand we do your work for you.
Gktony wrote:
I need to create a web service to call a business logic class without using reflection. Can someone send me a sample
well congratulations, i need to write an application to calculate time and attendance data, but you dont see me asking people to do it for me. what have you tried? where are you having problems? have you heard of google? as my "joke code" implied if youre not willing to help yourself no one here will even bother to even try.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
I need to create a web service to call a business logic class without using reflection. Can someone send me a sample Thanks
If you are not happy with the question there is a better way of putting it. Either ask to be more specific or ignore it (don’t bother as you mention). All of your writing is absolutely unnecessary and doesn’t help anyone. The reason I didn’t provide any code is because I know is only a line or two of code and yes I have search the web for it prior to my posting. I have got it working using reflection and I want to make it work without reflection. The code I used is, [WebMethod] public object ExecuteMethod( object ClassName, string method, params object[] arguments) { object returnedObject = ClassName.Method(); return returnedObject; } The problem I have is how to invoke the class name and method parameter in the web service
-
If you are not happy with the question there is a better way of putting it. Either ask to be more specific or ignore it (don’t bother as you mention). All of your writing is absolutely unnecessary and doesn’t help anyone. The reason I didn’t provide any code is because I know is only a line or two of code and yes I have search the web for it prior to my posting. I have got it working using reflection and I want to make it work without reflection. The code I used is, [WebMethod] public object ExecuteMethod( object ClassName, string method, params object[] arguments) { object returnedObject = ClassName.Method(); return returnedObject; } The problem I have is how to invoke the class name and method parameter in the web service
Why is reflection such a no-no for you? The only other way I can think of is to dynamically create code to fire off this class/method. You would look to do this with the CodeDom.
Deja View - the feeling that you've seen this post before.
-
Why is reflection such a no-no for you? The only other way I can think of is to dynamically create code to fire off this class/method. You would look to do this with the CodeDom.
Deja View - the feeling that you've seen this post before.