Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Service1Wse ok, but Service1 always enabled?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AndiRudi - 28 Mar 2005 18:27 GMT
I installed Wse1 and got it to work with a selfmade UsernameToken. But then I
found something serious. I can always user the standard way via Service1 =
new Service1 to access the Server without the Identification.

What is wrong?
Mirtul - 30 Mar 2005 19:09 GMT
Don't take this as a professional advice as I have just started using WSE
myself... but here's some things I put into my code to prevent this... Not
sure if it is foolproof...

In web.config under <webServices> add:
<protocols>
    <remove name="HttpPost"/>
    <remove name="HttpGet"/>
    <remove name="HttpPostLocalhost" />
</protocols>

This should prevent the web service from responding to these protocols if I
am correct, preventing anyone from calling your web service these ways.

And for each message check the following at the server:

SoapContext requestContext = RequestSoapContext.Current;
if (requestContext == null)
{
     throw new Exception("No Request Context Provided");
}

The normal proxy don't attach the RequestContext I believe. I have some
other preprocessing I need to do to each message so this snippet just went
into that preprocessing stage.

/Mirtul

> I installed Wse1 and got it to work with a selfmade UsernameToken. But then I
> found something serious. I can always user the standard way via Service1 =
> new Service1 to access the Server without the Identification.
>
> What is wrong?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.