Our partner is submitting a compressed large file to wm.tn:receive on HTTP protocol and TN recognizes the content
as largepart and invokes processing service.In processing service I decompress the content and then resubmit the uncompressed XML
content back to TN for further processing but this time TN is not recognizing the content as large.
I am using wm.tn.doc.xml:routeXml to route the xml back to TN.I have set my TN large file config setting correctly as it works when content is submitted first time using HTTP.
Can someone suggest why would wm.tn.doc.xml:routeXml would not recognize my doc as large? Node I supply to routeXml
service is being contructed via stream input to pub.xml:xmlStringToXMLNode.
I tried using wm.tn:receive for internal submit but it’s behavior is same as routeXml.
It is the HTTP handler that determines if a doc is large, not routeXml. Submit the doc using pub.client:http being sure to set the content-size header.
It is unfortunate that in order to submit to local server, I have to use HTTP.Don’t you expect it to have performance implications? A work around I have figured out is If I construct a $reservation object before calling routeXML then the document is being recognized as large.
are you saying that TN will never recognize the document as large if document is sent using routeXML ?
i have successfully set up TN large document handling for documents which were routed using routeXML inbuilt service.
Once document is routed to TN, tn.BigDocThreshold is the factor which would decide whether the document would be considered as large or not, irrespective of routing mechanism.
puneet,
can you try setting bigDocThreshold value to 0 which would mean that all document routed to TN would be considered as large.
I have tried doing that but its not working.I am sending a 3MB document to TN but Tn is not recognizing that document as large.
I have used the following settings:-
chinmaya, I believe the content-size header must be set for large doc handling to kick in.
But it appears that your steps are already loading the entire document into memory so there is no point in trying to get large doc handling of TN used until you restructure things.
Hi rmg/reamon,
I have tried using routeXML also but that is also not working.As i was going through the documentation i found that we cannot send a large document by $xmlData.Therefore i was using client:http but that is also not working.
Can u guys plz send me the code how to route a large document to TN???My email id is chinmayaj.nanda@lntinfotech.com.
Can you post the service steps along with parameter details? Perhaps we can see what is amiss.
But I want to emphasize again that if you’ve already loaded the document into memory (you mentioned using a couple of services that will only work when the document is completely in memory) then trying to get large doc handling for TN is pointless.
I’ve mentioned it before in this thread–routeXml will not cause large document handling to be used.
If the screenshot of the call to routeXml is for the service that is intended for real use (instead of just a “test things out” service) then the documentToXMLString and xmlStringToXMLNode are also a problem–those services expect the entire document to be in memory.
If you want large doc handling:
Don’t load the entire document into memory at any point of the integration. Use node iteration if necessary.
Use http to post the document to TN. Be sure to set the content-size header and pass a stream to the http call, not bytes nor a string.
I’ve mentioned it before in this thread–routeXml will not cause large document handling to be used. → My intention is not use routeXML (only to test stuff or internal routings).For large document handling purpose always Node iteration/http call and configure IS/TN LargeDoc handling is preferred way.
Sorry for late reply.finally I am able to do the large document handling.Thank you guyzzz for your support and answers.I will upload a document regarding what i have done soon.
Now i tried to check whether Large document handling is working or not by invoking these steps
stringToBytes bytesToStream handleLargeDoc then routeXML to route it to TN
while i m seeing the document has been sent to TN but in the pipeline out of the handleLargeDoc step
i m seeing under the bizDoc section LargeDocument is false i.e it is not recognised as large document…Can u please share steps that u have taken to send large document to TN
[/SIZE]