#include "soap/SOAP.h"
#include "soap/SOAPClient.h"
#include "util/XMLHelper.h"
+#include "validation/ValidatorSuite.h"\r
#include <sstream>
XercesJanitor<DOMDocument> janitor(doc);
auto_ptr<XMLObject> xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true));
janitor.release();
+ if (!m_validate)\r
+ SchemaValidators.validate(xmlObject.get());\r
Envelope* env = dynamic_cast<Envelope*>(xmlObject.get());
if (!env)
throw IOException("Response was not a SOAP 1.1 Envelope.");
+
reset();
xmlObject.release();
return env;