Correlation of PDF to BizTalk Orchestration

I need to map a PDF and XML file in BizTalk using the name and value of the PDF file name in XML. How can I read a PDF file in orchestration? I somehow have to process it as XML ...

The reason for the correlation is that I have to have both PDF and XML from the sending system before I can write them in a specific order to the receiving system (the PDF file must be delivered before the XML metafile is sent.).

+1


source to share


2 answers


Is your requirement to treat the PDF as a binary file in BizTalk - process it through BizTalk without even reading anything from the file?

If so, you don't need to parse it into XML at all, you just read the message in the type document System.Xml.XmlDocument

at your receiving location using an end-to-end pipeline.

This document will display all the standard context properties, such as the accepted filename, which you can use in any way you want, including for your correlation.



Richard Serother has a blog post here which is detailed in this section.

If you need to parse PDF to XML, I'm not sure if such an adapter / pipeline even exists. (There are adapters for PDF serialization, but not vice versa)

+7


source


I had a situation where we got an XML document and several PDFs associated with that document for processing. The receiving site receives the XML and sends it to the organization. Orchestration uses filenames from an XML document to read into a PDF file from a custom component. The code has moved the PDF, but you can also use it for MIME to encode it and put it in an XML document.



You mentioned the need to wait for the PDF file to appear. You can invite the orchestra for a while while waiting for the PDF file to appear.

0


source







All Articles