private SOAPMessage create_soap_message(InputStream in) {
        SOAPMessage msg = null;
        try {
            MessageFactory mf = MessageFactory.newInstance();
            msg = mf.createMessage(null, // ignore MIME headers
                    in); // stream source
        } catch (SOAPException e) {
            System.err.println(e);
        } catch (IOException e) {
            System.err.println(e);
        }
        return msg;
    }