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 / November 2005

Tip: Looking for answers? Try searching our database.

WSE 3.0 Security Labs..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oscar Thornell - 18 Nov 2005 11:43 GMT
Hi,

I am messing around with the hands-on labs for WSE 3.0...
Initially I had alot of problems since I got an Exception: "the request
failed with HTTP status 401: Unauthorized" for every request/demo app I
tried to use...

I modified the "GetProxy()" method to use PreAuthentication...and voila the
apps/labs work...

       private SecureInvoiceServiceWse GetProxy()
       {
           SecureInvoiceServiceWse proxy = new SecureInvoiceServiceWse();
           proxy.PreAuthenticate = true;
           proxy.Credentials =
System.Net.CredentialCache.DefaultCredentials;

           proxy.SetClientCredential<UsernameToken>(login.Token);
           proxy.SetPolicy("MyClientPolicy");
           return proxy;
       }

However what is happening here? Am I doing this the right way...or do I
circumvent WSE in any way??
If this is the correct way/behaviour why then was this not stated in the lab
instructions...

Regards
/Oscar
Pablo Cibraro - 18 Nov 2005 14:08 GMT
Hi Oscar,
That happens because the virtual directory for the sample web service
doesn't allow anonymous users. (Probably, it has been configured with
"Windows Authentication" only)

> Hi,
>
[quoted text clipped - 25 lines]
> Regards
> /Oscar
Oscar Thornell - 18 Nov 2005 14:11 GMT
Hi,

I have checked, re-checked that all virtual folders(they are nested..) in
IIS allow anonymous access...
I did use the "installvdirs.exe" program to create them...

/Oscar

> Hi Oscar,
> That happens because the virtual directory for the sample web service
[quoted text clipped - 30 lines]
>> Regards
>> /Oscar
Martin Kulov - 22 Nov 2005 03:58 GMT
> Hi,
>
[quoted text clipped - 3 lines]
>
> /Oscar

You can also check if the anonymous IIS_xxx account has read access to the
windows folders where your projects are located.

Regards,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD


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.