Thanks. I couldn't find the test case you are talking about
but it is probably similar to this:
MessageFactory messagefactory = MessageFactory.newInstance();
SOAPMessage message = messagefactory.createMessage();
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope
I secured my web service with basic authentication and I'm trying to
use the SAAJ API to access it:
//System.setProperty("http.basic.username", "user");
//System.setProperty("http.basic.password", "pass");
URL endpointUrl = new URL(endpoint);
SOAPMessage response = connection.call(message,