ValidateViaSchemaCache(_xmlDoc : Automation "'Microsoft XML, v6.0'.DOMDocument60";_xmlSchema : Automation "'Microsoft XML, v6.0'.DOMDoc CREATE(xmlSchemaCache); xmlSchemaCache.add(_NameSpace,_xmlSchema); CREATE(xmlDocumentTmp); xmlDocumentTmp.async := FALSE; xmlDocumentTmp.schemas := xmlSchemaCache; // Validation using load-method, while xmlDocumentTmp has a Schema attached // (load-method has more/better possiblities than validate-method) IF NOT xmlDocumentTmp.load(_xmlDoc) THEN BEGIN XMLParseError := xmlDocumentTmp.parseError; ERROR(Text001, XMLParseError.errorCode, XMLParseError.reason, XMLParseError.line, XMLParseError.linepos, XMLParseError.filepos); END; //Text001 = Error while validating the xml-Schema.\Error No.: %1\Error Text: %2 //\Line No.: %3\Line Position: %4\File Position: %5
Comments
We are also in a discusion on validating soap requests within Navision, or outside Navision on IIS using a XSLT script.
Did you manage to solve your problem?
Regards
Benno
Hmm, long time ago. As far as I remember we managed to just validate the xml documents. Also we changed from using soap toolkit to using xmlhttp.
Regards
Thomas