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
Vasu Gadhiya
NA
429
102.8k
How to secure webservice ?
Jul 2 2018 7:27 AM
i have developed webservice using webmethod
[WebMethod]
public
string
HelloWorld()
{
return
"Hello World"
;
}
public
UserDetails User;
[WebMethod]
[SoapHeader(
"User"
, Required =
true
)]
public
string
SayHello(
string
userName)
{
if
(User !=
null
)
{
if
(User.IsValid())
return
string
.Format(
"Hello...{0} ☺ "
, userName);
else
return
"Error in authentication"
;
}
else
{
return
"Error in authentication"
;
}
}
All working Fine
but issue is when i run from desktop app its data (request and response) shown in web debugging software Like Fiddler.
even SOAP header is Shown.
(see attached screenshot)
How can i secure this Type of web Service (web method)
Reply
Answers (
1
)
How to delete node and sub node in C# in XLM file ?
File Upload Validation Using JQuery MultiFile Plugin