getChild("Body",Namespace.getNamespace(defaultSoapEnvNamespace));
getChild("Body",SoapNamespaces.getDefaultSoapEnvNamespace());
    public static void doPostSingle(HttpServletRequest request,                              HttpServletResponse response,                              OpendapHttpDispatchHandler odh){        System.out.println("\n\n\nSOAPHandler.doPost(): Start of POST Handler.");        try {            SAXBuilder saxBldr = new SAXBuilder();            Document doc = saxBldr.build(request.getReader());            XMLOutputter xmlo = new XMLOutputter(Format.getPrettyFormat());            System.out.println("");            System.out.println("POST Method got this XML Document:");            xmlo.output(doc,System.out);            System.out.println("");            if(qcSOAPDocument(doc)){                System.out.println("Sending Response...");                Element soapBody = doc.getRootElement().                        getChild("Body",Namespace.getNamespace(defaultSoapEnvNamespace));                List soapContents = soapBody.getChildren();                Element[] msgs = new Element[soapContents.size()];                for(int i=0; i<soapContents.size() ;i++){                    Object o = soapContents.get(i);                    if(o instanceof Element){                        Element clientReq = (Element) o;                        msgs[i] = soapRequestDispatcher(request,clientReq);                        //xmlo.output(msgElement,System.out);                    }                    else if (o instanceof Text){                        Text t = (Text) o;                        System.out.println("Got a Text object: \""+t.getText()+"\"");                    }                }                for(int i=0; i<msgs.length ;i++){                    if(msgs[i] != null)                    soapBody.addContent(msgs[i]);                }                xmlo.output(doc,response.getOutputStream());                System.out.println("done.");            }            else {                System.out.print("Reflecting Document to client...");                xmlo.output(doc,response.getOutputStream());                System.out.println("done.");            }        } catch (Exception e) {            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.        }        System.out.println("SOAPRequestDispatcher.doPost(): End of POST Handler.\n\n\n");    }