BizTalk Server Orchestration - Orchestration: Read a PDF File

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > May 2005 > Orchestration: Read a PDF File





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Orchestration: Read a PDF File
David Gil

2005-05-11, 5:50 pm

Hi:

I have made a orchestration in which I call one componet. This component
read several document and return a pdf document. I return PDf document in
string. In Orchestration, I assig the string on xml element but It change
the text. And when I return the XML on a Web Services, I have one error:
Code:
-2147467259

ServerInfo:
Exception of type System.Runtime.InteropServices.COMException was
thrown."





Is there anyway to read a pdf from a Visual Studio .Net C# without
changing the text? Do anyone know the way BizTalk accept the character of
PDF without error?

Regards in advanced

David


BA

2005-05-12, 5:50 pm


BizTalk can send any document you want, use that pass thru pipeline (out).

Instead of string, assing your message (out) type as xml.xmlDocument
(counterintuitive as that sounds) and BizTalk wont touch it unless you do.



"David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
news:%23jMFf2kVFHA.2740@TK2MSFTNGP14.phx.gbl...
> Hi:
>
> I have made a orchestration in which I call one componet. This
> component read several document and return a pdf document. I return PDf
> document in string. In Orchestration, I assig the string on xml element
> but It change the text. And when I return the XML on a Web Services, I
> have one error:
> Code:
> -2147467259
>
> ServerInfo:
> Exception of type System.Runtime.InteropServices.COMException was
> thrown."
>
>
>
>
>
> Is there anyway to read a pdf from a Visual Studio .Net C# without
> changing the text? Do anyone know the way BizTalk accept the character of
> PDF without error?
>
> Regards in advanced
>
> David
>



David Gil

2005-05-13, 2:51 am

Hi BA:

I have the same problem. The pdf is composed in one component I call in
the orchestration. The component return read the pdf file and it return in
string. The problem when i assign this string to one element, BizTalk change
same characters. Your method is using routing in BizTalk but in my case the
pdf document is composed in BizTalk.
Have you got any idea to do it?

Regards

"BA" <biztalk.architect@gmail.com> escribió en el mensaje
news:42838a36$0$1335$5fc3050@dreader2.news.tiscali.nl...
>
> BizTalk can send any document you want, use that pass thru pipeline (out).
>
> Instead of string, assing your message (out) type as xml.xmlDocument
> (counterintuitive as that sounds) and BizTalk wont touch it unless you do.
>
>
>
> "David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
> news:%23jMFf2kVFHA.2740@TK2MSFTNGP14.phx.gbl...
>
>



BA

2005-05-14, 1:15 pm


David,

I'm not clear on why you are assigning a sting. Are you reading the
contents of the PDF in the component AS a string? If you are I dont see
your problem, it technically should work fine....

If you are trying to make a PDF a string, that is where you are going wrong,
refer to my previous post using a different message type

Cheers,
BA

"David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
news:ed%23zWQ2VFHA.228@TK2MSFTNGP12.phx.gbl...
> Hi BA:
>
> I have the same problem. The pdf is composed in one component I call in
> the orchestration. The component return read the pdf file and it return in
> string. The problem when i assign this string to one element, BizTalk
> change same characters. Your method is using routing in BizTalk but in my
> case the pdf document is composed in BizTalk.
> Have you got any idea to do it?
>
> Regards
>
> "BA" <biztalk.architect@gmail.com> escribió en el mensaje
> news:42838a36$0$1335$5fc3050@dreader2.news.tiscali.nl...
>
>



David Gil

2005-05-16, 2:51 am

HI BA.

Yes, I'm reading PDF as a string in one component. The problem is when I
return the string to the orchestration. It change the characters. It is the
problem.

Regards.

"BA" <biztalk.architect@gmail.com> escribió en el mensaje
news:4284ca3c$0$1379$5fc3050@dreader2.news.tiscali.nl...
>
> David,
>
> I'm not clear on why you are assigning a sting. Are you reading the
> contents of the PDF in the component AS a string? If you are I dont see
> your problem, it technically should work fine....
>
> If you are trying to make a PDF a string, that is where you are going
> wrong, refer to my previous post using a different message type
>
> Cheers,
> BA
>
> "David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
> news:ed%23zWQ2VFHA.228@TK2MSFTNGP12.phx.gbl...
>
>



BA

2005-05-16, 2:51 am

Hey David,

How exactly is it changing your data?

Can you post a small sample, or is it wrapping <bla></bla> tags around your
data?

BA

"David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
news:uJcixMeWFHA.3760@TK2MSFTNGP15.phx.gbl...
> HI BA.
>
> Yes, I'm reading PDF as a string in one component. The problem is when I
> return the string to the orchestration. It change the characters. It is
> the problem.
> s
> Regards.
>
> "BA" <biztalk.architect@gmail.com> escribió en el mensaje
> news:4284ca3c$0$1379$5fc3050@dreader2.news.tiscali.nl...
>
>



Matt Milner

2005-05-16, 5:50 pm

I'd read the PDF as a stream and create a message part from it instead of
trying to treat it as a string. This should keep the data from getting
changed around.

Matt


"BA" <biztalk.architect@gmail.com> wrote in message
news:428846dd$0$1333$5fc3050@dreader2.news.tiscali.nl...
> Hey David,
>
> How exactly is it changing your data?
>
> Can you post a small sample, or is it wrapping <bla></bla> tags around
> your data?
>
> BA
>
> "David Gil" <david_gil@tecnologia.cajamar.es> wrote in message
> news:uJcixMeWFHA.3760@TK2MSFTNGP15.phx.gbl...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com