I have a bit of code that makes a simple SOAP request using SAAJ to a server that requires basic authentication. I've tested this code with both the Axis SAAJ implementation and Sun's reference SAAJ implementation and it works fine. However, when I run the code from inside a web app deployed in JBoss 4.0.3SP1, it uses the JBoss SAAJ implementation and fails with a 401 (Auth denied) error.
Watching the SOAP request with Axis' tcpmon shows that the custom mime header for the basic authorization I'm putting in the request is not actually making it into the request sent to the server. The mime header does appear when using the Axis and Sun SAAJ implementations.
The code is simply: SOAPMessage message; SOAPConnection connection;