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.

Custom security assertion problem is driving me nuts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Catalin Stavaru - 25 Dec 2005 00:54 GMT
Hi,

I have spent hours to solve this problem to no avail.

I have created a custom security policy assertion for a web service as shown
in WSE 3.0 documentation. My complex project involves using two custom
security tokens and token managers to encrypt/sign SOAP messages. But at the
server, I get the error "Soap header Security was not understood" and the
ValidateMessageSecurity method is not called.

Things I did:

- I have WSE3-enabled both the service and the client using the WSE3
settings tool; The web.config service file contains the
"soapServiceProtocolFactory" element as needed.
- I have made sure the WSE3 sample certificates are installed ok. WSE3
samples work fine.
- I have visualized the SOAP message send by the client and it is perfectly
formed.

I have also created a simple solution containing a HelloWorld web service, a
simple console client and a library containing the custom security assertion
found in WSE3 documentation. That doesn't work either, I get similar errors
at the client now ( the service's ValidateMessageSecurity and SecureMessage
are called and all is ok, but now on the client when the SOAP response
arrives, the "ValidateMessageSecurity" method does not get called and the
error (ResponseProcessingException thrown)  is about the same as above.)

Does anyone has an idea about why it doesn't work ? I am using Visual Studio
2005 Professional and .NET Framework 2.0. I would appreciate answers
especially from people who worked with custom security assertions.

Merry Christmas ! :)

Catalin Stavaru
Steve - 02 Jan 2006 13:32 GMT
I am having the same issues, using the same platform.  Please include m
on any answers

--
Stev
Catalin Stavaru - 03 Jan 2006 07:04 GMT
Hi,

I solved the problem. My problem was because the token manager for one
custom token did not function correctly ( LoadTokenFromXml returned null).

In the sample I wrote for debugging, the problem was again because a
security token issue.

The idea is that if WSE cannot recover the security tokens from the Soap
messages using LoadTokenFromXml or LoadTokenFromKeyInfo (for some reason),
it does not call the ValidateMessageSecurity method.

The best thing is to activate Soap message input/output tracing with WSE
settings tool, and then look for potential problems in the messages.

Beware, the WSE3 error messages can be extremely misleading. Make sure you
look at the "InnerException" fields, and also at the InnerException of the
InnerException :)

Catalin Stavaru

> I am having the same issues, using the same platform.  Please include me
> on any answers.
Vijay P - 07 Jan 2006 20:24 GMT
Can you pls give me your sample custom token with token manager code.

I see problems on custom token manager with custom token code available on
MSDN.

Thanks,

Vijay

> Hi,
>
[quoted text clipped - 19 lines]
> > I am having the same issues, using the same platform.  Please include me
> > on any answers.

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.