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

Tip: Looking for answers? Try searching our database.

Removing timestamp in WSE 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan - 24 Apr 2006 06:40 GMT
I am developing WSE 2.0 .NET client consuming Java Web services and I need to
remove timestamp from outgoing SOAP message.

I implemented the SoapOutputFilter but it seems that in ProcessMessage
method Security element doesn't exist YET and therefore I cannot remove
timestamp.
I can see other header elements like Action, MessageID, ReplyTo and To but
there is no Security element and therefore no timestamp.

Here is code example:

XmlNamespaceManager nsm = new XmlNamespaceManager(envelope.NameTable );
nsm.AddNamespace("wsse", WSSecurity.NamespaceURI);
nsm.AddNamespace("wsu", WSUtility.NamespaceURI);
XmlNode node =
envelope.Header.SelectSingleNode("//wsse:Security/wsu:Timestamp", nsm);

I need to remove Timestamp completely since the configuration of the Java
web service I am calling doesn't support it. If I add timestamp to Java web
service configuration it works just fine but I cannot do it since it would
not be compatible with other existing java clients.

Any help is highly appreciated

Jan
Pablo Cibraro - 24 Apr 2006 15:05 GMT
Hi Jan,

Did you configure your assertion to run after the security assertion ?. The
order of the assertions is really important.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

>I am developing WSE 2.0 .NET client consuming Java Web services and I need
>to
[quoted text clipped - 23 lines]
>
> Jan
Jan - 24 Apr 2006 15:21 GMT
Hi Pablo,
 thank you for your response. I am not quite sure what you mean. This is
from WSE 2.0 documentation:

The order in which filters are processed is as follows:
1. Security
2. Timestamp
3. Referral
4. Routing
5. Custom filters

I implemented custom filter (:SoapOutputFilter) and also security filter (:
SecurityOutputFilter) but both of them failed. By that I mean that security
header was not created in runtime yet.  

Can you be please more specific and give me some example how to do this?

Thank you.

Jan

> Hi Jan,
>
[quoted text clipped - 32 lines]
> >
> > Jan
Pablo Cibraro - 24 Apr 2006 21:43 GMT
Upss, sorry. I was talking about WSE 3.0.
I am not sure how to do the same with WSE 2.0.

Regards,
Pablo.

> Hi Pablo,
>  thank you for your response. I am not quite sure what you mean. This is
[quoted text clipped - 60 lines]
>> >
>> > Jan
Jan - 25 Apr 2006 06:02 GMT
Can you discribe how do you do it with WSE 3.0 please?

Jan

> Upss, sorry. I was talking about WSE 3.0.
> I am not sure how to do the same with WSE 2.0.
[quoted text clipped - 66 lines]
> >> >
> >> > Jan
Pablo Cibraro - 25 Apr 2006 15:35 GMT
Yes,

You have to perform the following steps:

1. Develop a custom assertion (An assertion is a kind of factory for the
soap filters)
2. Develop an output filter to remove the timestamp header

3. Configure the service to use a policy with two assertions, the security
assertion and the assertion developed in the step #1. (The last one must run
after the security assertion).

You can find more information about this topic in this article
http://msdn.microsoft.com/msdnmag/issues/06/02/WSE30/default.aspx

Regards,
Pablo.

> Can you discribe how do you do it with WSE 3.0 please?
>
[quoted text clipped - 80 lines]
>> >> >
>> >> > Jan
Jan - 26 Apr 2006 06:18 GMT
Pablo,
 this is excellent! This should work. I will implement my client with WSE
3.0 and try what you suggested. I will update you once I am done.

Thank you very much for your resposne.

All the best!

Jan

> Yes,
>
[quoted text clipped - 98 lines]
> >> >> >
> >> >> > Jan

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.