-
WSE 2.0 Timestamp issue
Hello,
I am creating a web service client in .net 1.1 and im using WSE 2.0 sp3. Im trying to consume a service that is hosted on a java webserver, not sure if its axis, or web sphere but based on the errors I'm getting ive concluded that its some form of java server. The soap envelope im sending is pretty simple, the header contains a ws-security with a username token and a timestamp
...
<soap:Header>
<wsse:Security soap:mustUnderstand="1">
<wsu:Timestamp wsu:Id="Timestamp-a55717e4-db66-4dd7-a481-1e813ee4ef58">
<wsu:Created>2007-04-03T13:44:32Z</wsu:Created>
<wsu:Expires>2007-04-03T13:49:32Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-8f5e1ea9-5f00-4910-b7b4-70866fc22190">
<wsse:Username>####</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">#####</wsse:Password>
<wsse:Nonce>#####</wsse:Nonce>
<wsu:Created>2007-04-03T13:44:32Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>.....
</soap:Envelope>
The problem is I am getting an actions number mismatch error when im sending the envelope with the timestamp. I'm using soapui to test my soap messages, and when i send it with the timestamp removed everything seems to work fine.
Wse 2.0 inserts the timestamp automotically into the soap envelope. My question is, How can I remove the timestamp from the security header? I've tried using a custom filter but that cannot work because custom filters are added to the soap message before the timestamp is. Is this something that can be written in the the policy file? will items in the policy file actually remove items in the soap message? Removing the timestamp doesnt seem like it should be this difficult.
I appreciate any help
Similar Threads
-
Replies: 1
Last Post: 02-20-2007, 08:02 PM
-
By rajat_sharma69 in forum .NET
Replies: 0
Last Post: 10-17-2006, 12:17 AM
-
By digioz in forum ASP.NET
Replies: 2
Last Post: 09-25-2006, 12:55 PM
-
By bacusgod in forum ASP.NET
Replies: 0
Last Post: 04-07-2006, 06:24 PM
-
By Maria Jose Serres in forum dotnet.announcements
Replies: 0
Last Post: 02-19-2003, 02:54 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks