1

How can I remove the from the soap header?

I am using WSE 3.0 and I want to remove this

<wsse:Security>
        <wsu:Timestamp wsu:Id="Timestamp-3abc1d4b-faa4-423c-9987-54e0f49a5782">
            <wsu:Created>2014-04-07T06:15:35Z</wsu:Created>
            <wsu:Expires>2014-04-07T06:20:35Z</wsu:Expires>
        </wsu:Timestamp>
    </wsse:Security>

How can I remove this. Removing Security header

I am using .net c# 4.0 Asmx approach to create a proxy class of java web service

Community
  • 1
  • 1
roopini n
  • 503
  • 2
  • 7
  • 29
  • First of all, were you aware that WSE is obsolete? Second, why do you want to remove the header? And do you want to remove it when you send it or when you receive it? – John Saunders Apr 07 '14 at 14:55
  • And what is a ".net c# 4.0 Asmx java web service"? – John Saunders Apr 07 '14 at 14:55
  • I know it is obsolete, I want to remove it in request. I am using asmx approach to create a proxy class of a java web service. Sorry I will correct that – roopini n Apr 09 '14 at 05:35
  • Sorry, you didn't answer my question. Why do you want to remove the header? And why are you using WSE? – John Saunders Apr 09 '14 at 06:54
  • WSE was used in our project from years back, and we are still in the process of implementing the WCF approach, till then we want the other code to work as it is. WSE header contains the credentials that are passed and it is not set anywhere to pass that header. Still it is able to send in the request. – roopini n Apr 09 '14 at 08:13
  • It is still very unclear to me why you want to remove the header. – John Saunders Apr 09 '14 at 08:21
  • Security header in the project is sending the Username in the request under the security header which i have not posted in the code. I want to remove that in the header. I dont want WSSE security header completely. – roopini n Apr 09 '14 at 08:40
  • 1
    But, if the service requires the header, then you're going to have a problem. – John Saunders Apr 09 '14 at 08:50
  • ah,okay, but cant we trim this if we having a log which is a text file for our application. That is when we trying to write this to a log.? – roopini n Apr 09 '14 at 08:57
  • Did you know that this is the first time you have spoken about logging? – John Saunders Apr 09 '14 at 13:42
  • John Saunders: we don't all have the freedom to do things in any fashion we please. If you don't have a useful answer, try not railing on the OP. Maybe just move along. If you suspect you can help the user by suggesting something other than an answer, you could certainly find more polite ways to offer. – Sprague Nov 04 '15 at 13:09

0 Answers0