2 Replies Latest reply on Sep 28, 2005 8:01 AM by Scott Falbo

    Authorization Header being stripped from Mime Headers of SOA

    Scott Falbo Newbie

      I am using Jboss 4.0.3 RC2 and I am sending a SOAPMessage from a client using the call(...) method of javax.xml.soap.SOAPConnection. I also need to set the Authorization mime header on the message but when I use:

      SOAPMessage message;
      SOAPConnection conn;
      ...
      message.getMimeHeaders().addHeader("Authorization", "...");
      ...
      conn.call(message, new URL("servlet URL"));
      


      The Authorization header is not in the mime headers of the request. If I add any other header name, it is set in the mime headers correctly. Does anyone have any idea as to what I am missing? Is there another way that I need to go about setting the Base64 encoded Authorization header?

      I really need to get this header in the message because I am trying to send to a servlet with BASIC Authentication securing it. Thanks in advance for your help.

      Scott