| Author |
Biztalk 2004: HTML file output and "output escaping"
|
|
|
| I have a problem with output:
I need and HTML file. I have a string from a web service call, I load that
into a message which has "System.String" as its message type.
I have tried a few combinations of conversion and none work.
What am I not doing so that the HTML goes out as tags and not gibersih like
"<%a href=" content ect.... &rt;lt&" instead of "<a href="bla bla
bla">
I have also tried pipeline solutions. Does anyone know the solution to
this?
Thanks!
| |
| Greg Forsythe 2005-03-09, 2:50 am |
| You can use the RawString custom formatter to do this you will not need to
escape the Html
Check out the following topic in the Biztalk help
"Sending an HTML-Formatted E-Mail Message from an Orchestration"
Greg
"BA" <biztalk.architect@gmail.com> wrote in message
news:1109722285. a8004d9eb8d1c60d341ea5017d496497@teranew
s...
> I have a problem with output:
>
> I need and HTML file. I have a string from a web service call, I load that
> into a message which has "System.String" as its message type.
>
> I have tried a few combinations of conversion and none work.
>
> What am I not doing so that the HTML goes out as tags and not gibersih
like
> "<%a href=" content ect.... &rt;lt&" instead of "<a href="bla bla
> bla">
>
> I have also tried pipeline solutions. Does anyone know the solution to
> this?
>
> Thanks!
>
>
| |
|
| I read thru the example and tried a few combinations without success.
I dont really understand how you incorporate the rawstring formatter, where
is it implimented?
Thanks for the reply.
"Greg Forsythe" <greg.forsythe@unisys.com> wrote in message
news:uBSf3bFJFHA.3356@TK2MSFTNGP12.phx.gbl...
> You can use the RawString custom formatter to do this you will not need to
> escape the Html
> Check out the following topic in the Biztalk help
>
> "Sending an HTML-Formatted E-Mail Message from an Orchestration"
>
>
> Greg
>
>
>
> "BA" <biztalk.architect@gmail.com> wrote in message
> news:1109722285. a8004d9eb8d1c60d341ea5017d496497@teranew
s...
> like
>
>
| |
|
|
I've tried a few more combinations without success.
One in particular I've never seen before nor have I found documted:
There was a failure executing the send pipeline:
"Microsoft.BizTalk.DefaultPipelines.XMLTransmit" Source: "XML assembler"
Send Port: "C:\temp\message%messageid%.html" Reason: This Assembler cannot
retrieve document specification by using this type:
"http://www.w3.org/1999/xhtml#html".
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
"BA" <biztalk.architect@gmail.com> wrote in message
news:1110621066. 3b5aaedb655f1c3f2678c1f7b6d070cd@teranew
s...
>I read thru the example and tried a few combinations without success.
>
> I dont really understand how you incorporate the rawstring formatter,
> where is it implimented?
>
> Thanks for the reply.
>
>
>
> "Greg Forsythe" <greg.forsythe@unisys.com> wrote in message
> news:uBSf3bFJFHA.3356@TK2MSFTNGP12.phx.gbl...
>
>
| |
| Matt Milner 2005-03-13, 5:49 pm |
| Try using the pass through pipeline or a custom pipeline without the XML
assembler. You likely won't want to deal with the message as XML in the
pipeline since it is not xml.
Matt
"BA" <biztalk.architect@gmail.com> wrote in message
news:1110663296. 466e1e72b034e2ffb18bd043110f658c@teranew
s...
>
> I've tried a few more combinations without success.
>
> One in particular I've never seen before nor have I found documted:
>
>
> There was a failure executing the send pipeline:
> "Microsoft.BizTalk.DefaultPipelines.XMLTransmit" Source: "XML assembler"
> Send Port: "C:\temp\message%messageid%.html" Reason: This Assembler cannot
> retrieve document specification by using this type:
> "http://www.w3.org/1999/xhtml#html".
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
>
>
>
>
>
>
>
> "BA" <biztalk.architect@gmail.com> wrote in message
> news:1110621066. 3b5aaedb655f1c3f2678c1f7b6d070cd@teranew
s...
>
>
| |
|
|
Matt,
Thanks for the suggestion. I did try it with the pass thru pipeline but
again, I get the jumbled HTML I dont want.
I just cant figure out a way to convert the < and &rt; to < and > which
are the HTML tags.
I cant believe how long I have been trying to get this to work.
I have never written a custom pipeline, does the answer lie in there?
thanks,
Isaac
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:ue7x4o$JFHA.2620@TK2MSFTNGP14.phx.gbl...
> Try using the pass through pipeline or a custom pipeline without the XML
> assembler. You likely won't want to deal with the message as XML in the
> pipeline since it is not xml.
>
> Matt
>
>
> "BA" <biztalk.architect@gmail.com> wrote in message
> news:1110663296. 466e1e72b034e2ffb18bd043110f658c@teranew
s...
>
>
| |
| Matt Milner 2005-03-15, 2:51 am |
| Without fully looking at your implementation, I'd say the raw string sample
mentioned earlier along with a pass through pipeline should really do the
trick. Nothing in either of those should be escaping HTML. Is the HTML
escaped before you send it out? Perhaps you need to unescape it before
sending.
Matt
"BA" <biztalk.architect@gmail.com> wrote in message
news:1110785832. ed58b5580dad3368d28d222f60778b8e@teranew
s...
>
> Matt,
>
> Thanks for the suggestion. I did try it with the pass thru pipeline but
> again, I get the jumbled HTML I dont want.
>
> I just cant figure out a way to convert the < and &rt; to < and > which
> are the HTML tags.
>
> I cant believe how long I have been trying to get this to work.
>
>
> I have never written a custom pipeline, does the answer lie in there?
>
> thanks,
> Isaac
>
>
> "Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
> news:ue7x4o$JFHA.2620@TK2MSFTNGP14.phx.gbl...
>
>
| |
|
| One of the community members Gavin was so kind as to post a working
solution:
(I cant believe how close I was, thanks for the help!)
I did the same think for creating XML files. Here's what I did:
1) Created an assembly based on :
http://msdn.microsoft.com/library/d...-us/sdk/htm/ebi
z_prog_email_ibad.asp
I changed the namespace to match the MSDN example -
Microsoft.XLANGs.CustomFormattersSDK
Install it in the GAC.
2) In my orchestration project, added a reference to the
Microsoft.XLANGs.CustomFormattersSDK dll.
- Create a msg in my orchestration of type RawString, same for the port
type.
- Assign the Rawstring class instance to my msg
- In my message assignment expression:
RawOutMsg = new
Microsoft.XLANGs.CustomFormattersSDK.RawString("<HTML><BODY>Hello
world</BODY></HTML>")
3) I used the PassThru pipeline for the file port.
4) Sent it.
Thanks everyone, email me if you want a working sample sln
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:u92bhqSKFHA.3652@TK2MSFTNGP10.phx.gbl...
> Without fully looking at your implementation, I'd say the raw string
> sample mentioned earlier along with a pass through pipeline should really
> do the trick. Nothing in either of those should be escaping HTML. Is the
> HTML escaped before you send it out? Perhaps you need to unescape it
> before sending.
>
> Matt
>
>
> "BA" <biztalk.architect@gmail.com> wrote in message
> news:1110785832. ed58b5580dad3368d28d222f60778b8e@teranew
s...
>
>
|
|
|
|