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 / January 2006

Tip: Looking for answers? Try searching our database.

securityContext causes web service failure(401 - unauthorized) in wse3... why??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julie Lerman - 08 Jan 2006 21:17 GMT
Any idea why turning Secure Conversation ON would cause a web service call
never to reach the web service? When secure conversation is off (on client
and service) my web services work perfectly fine. I am not using anything
custom (outside of a custom username token manager). Everything else is set
through the settings tool - policy is a basic usernameoverCertificate.

When I turn SecureConversation, the call to the web service errors out
immediatly and I can see through tracing that the web service is not even
getting hit.

I am doing this against IIS 5 on the development machine.

The error I'm getting when I make the web service call is that the remote
server returned a 401 unauthorized error.

Again - it's all working just peach with secure conversation off, so that
gives me confidence in my x509 certificates, etc.

thanks for any insights

julie
Julie Lerman - 09 Jan 2006 02:42 GMT
This makes NO sense to me, but I was setting the ClientCredentials using the
generic method

proxy.SetClientCredential(Of UsernameToken) (myUT)

When I changed this to
proxy.SetClientCredential(myUT)

It worked.

I did have to make a small change to my web service where it was doing
authorization against this usernametoken, but that was nominal.

I blogged about this here:
http://www.thedatafarm.com/blog/PermaLink.aspx?guid=62872ee5-d8b4-470e-98d2-c99c
607f71e8

> Any idea why turning Secure Conversation ON would cause a web service call
> never to reach the web service? When secure conversation is off (on client
[quoted text clipped - 17 lines]
>
> julie

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.