Hi,
You need to create a custom filter and place it at the end of the WSE
pipeline, and then get hold of the soap message, and manually remove
this element. There maybe an easier way but I haven't come across it!
1. You can create a custom SoapFilter, then a custom PolicyAssertion
that creates this custom SoapFilter and then associate the assertion to
the policy in the config file (e.g. wse3policyCache.config).
Refer to WSE 3.0 local help, url:
ms-help://MS.WSE30.1033/WSE3.0/html/2169b720-80b1-46a8-a990-7e9619de1ea9.htm
Also have a look at the sample here (c#):
C:\Program Files\Microsoft
WSE\v3.0\Samples\CS\QuickStart\Basic\CustomPolicyT raceAssertion
2. Basically once you have your custom filter in the pipeline, you can
override the ProcessMessage method of your custom SoapFilter class and
search remove the timestamp element in the soap header of the soap
envelope that is passed into this method.
Rasika.
F.Mondelo wrote:
Quote:
Hi,
I need send a message to a Java WebService from a .NET Client. When I
use WSE 3.0 to send the message, by default in SOAP Header, WSE adds
Timestamp.
Java WebService doesn´t understand this header and I need to remove
it, how can I remove Timestamp header in WSE 3.0? |