TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roman
NA
1
0
WebMethod
Apr 13 2010 5:47 PM
I am wokring with a web service and I would like to list all of the web methods of that service on my page. I'm being told that somewhere there is a WebMethod property that I can use to distinguish between web metjods and other methods. This is the code I have so far...
dev_something.
Service
APIService =
new
WebApplication1.dev_something.
Service
();
Type
api = APIService.GetType();
MethodInfo
[] methods = api.GetMethods();
foreach
(
MethodInfo
mi
in
methods)
{
if (itIsAWebMethod)
{
Response.Write(methodName +
"<br />"
);
}
}
Reply
Answers (
0
)
Deny a program in c# ?
WordInWeb Only Opens Document In Word Not In Browser