Retrieving the Document Content to Deliver
To obtain the document content to deliver, use the wm.tn.doc:getDeliveryContent service. You pass this service the BizDocEnvelope that contains the document and the service returns the delivery content.
You can use the wm.tn.doc:getDeliveryContent service regardless of whether Trading Networks considers the document large or not. This service determines whether to handle the document as large. If the document is not considered large, the service returns the delivery content as a byte array. If the document is considered large, the service returns the delivery content as a Java InputStream object.
Note: Trading Networks cannot handle large documents that are delivered using the Web service delivery method.