private void extract_contents_and_print(SOAPMessage msg) {
        try {
            SOAPBody body = msg.getSOAPBody();
            Name lookup_name = create_qname(msg);
            Iterator it = body.getChildElements(lookup_name);
            Node next = (Node) it.next();

            String value = (next == null) ? "Error!" : next.getValue();
            System.out.println("\n\nReturned from server: " + value);
        } catch (SOAPException e) {
            System.err.println(e);
        }
    }