I have been experiencing a very small issue while processing XML doc types lately.
When i read xml from a file and use wm.tn.doc.xml:routeXml to route the content to TN it doesn’t get recognized i.e processing rule is not selected correctly. The coontent type and everything is recognized correctly.
but the same thing if i do using a http call to wm.tn:receive service it get processed correctly.
Im not sure as to how same document type is being recognized and not recognized at the same time.
Im not sure if there is any configuration mistake or anything but im clueless as to why it wouldn’t recognise !
Now im just reading the file as string with utf-8 encoding then converting the xml string to xml node and then routing the xml node to TN and also at the same time invoking tn:receive service with content type set as text/xml;
The route to xml fails to recognize the document it is going for unknown PR but the second http call is processing the xml file correctly.
During wm.tn.doc.xml:routeXml this service call this is the error i have got in the logs.
[101]2015-11-09 11:36:11 UTC [TNS.0001.2088I] A corrupted document was encountered in recognition: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (5ec14k00a3m0gcri000003mq) is probably not valid XML.
[100]
[99]2015-11-09 11:36:11 UTC [ISU.0000.9999E] com.wm.app.tn.doc.CorruptXMLException: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (5ec14k00a3m0gcri000003mq) is probably not valid XML.
What’s you input to routeXML and make sure you just pass node in the pipeline for routing xmldata and assuming you have created the TN document type etc… for proper recognition.