Is This Content Helpful?
We're glad to know this article was helpful.
Publishing to an ArcIMS Metadata Service fails for valid documents by displaying the following error:
"[ERR1006] Published document is not valid XML".
Metadata Server is not resetting the XML parser error handler after a 'real' error has occurred. The error handler records XML parsing errors during processing of the ArcXML request and extraction of the metadata document from a publish request.
If an error occurs because of invalid XML, a correct response is returned, but a subsequent request to the same thread will also fail because the error handler hasn't been reset and still maintains the previous errors.
For ArcIMS 9.0, the only way to get Metadata Server back into a good state is to restart the ArcIMS Monitor service.
For ArcIMS 9.1, sending a specific ArcXML request will reset the ArcIMS XML Parser.
Option A: If developing in Java, send this request programmatically using the JavaConnector:
ConnectionProxy aims = new ConnectionProxy(); aims.setConnectionType("http"); aims.setUrl(new URL ("http://mysite")); aims.setService("Metadata"); String result = aims.send("<?xml version='1.0'?><REFRESH_ERROR_HANDLER/>"); System.out.println(result);