BizTalk Server General - tricky one!

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > July 2005 > tricky one!





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 tricky one!
Scott Colestock

2005-07-25, 6:04 pm

To my knowledge, the xml assembler will never inject carriage
return/line-feeds in the xml it produces.

Depending on your transactional volumes, you might want to consider a custom
pipeline that uses a XmlTextWriter with Formatting.Indented to get what you
need (just a quick way to get CR-LFs). (There would be other ways to
accomplish the same goal within a pipeline, of course.)

Scott Colestock
www.traceofthought.net

"Brian Cesafsky" <Brian.Cesafsky@AutoTrackerPlus.com> wrote in message
news:OqpPzKSkFHA.3144@TK2MSFTNGP12.phx.gbl...
> Here is how my current poject is working.
>
> 1) I have a very simple Output Schema
> 2) I have a send pipeline that uses an XML assembler because I need to set
> the "Target charset" to ASCII.because the company that I send the output
> file to is running the file on a UNIX box
> 3) I have a map that I use on a send port.
> 4) The output is an XML file
>
> NOTE - I am not using an orchestration, I am simply using a filter on the
> send port to 'look' at the receive port.
>
> Everything processes just fine. I get my ouput file as I would expect.
> When I view it in IE, or Vis Studio, everyting looks fine. I FTP the file
> to a vendor, and he is having issues with the file. He is on a UNIX box,
> and when he does a "head" on the file (what ever that does), this is what
> MY file looks like to him (the issue seems to be that it is one long
> string)
>
> |tpalrtap01 alert ~midwest $>head AmberAlert.xml.original
>
> <?xml version="1.0" encoding="us-ascii"?><AmberAlertSubscriberDisconnects
> xmlns="http://syniverse.com/amber/common/vo"><CarrierID>3233</CarrierID><FileTimestamp>2005-07-20T14:39:19</FileTimestamp><TelephoneNumbers><TelephoneNumber>5072593433</TelephoneNumber><TelephoneNumber>5078288301</TelephoneNumber><TelephoneNumber>507421

2905</TelephoneNumber><TelephoneNumber>5072721626</TelephoneNumber><TelephoneNumber>5078281781</TelephoneNumber><TelephoneNumber>3205837359</TelephoneNumber><TelephoneNumber>7122604550</TelephoneNumber><TelephoneNumber>5072722075</TelephoneNumber><Telepho
neNumber>5078220754</TelephoneNumber><TelephoneNumber>5072721745</TelephoneNumber><TelephoneNumber>5073828765</TelephoneNumber><TelephoneNumber>5073275768</TelephoneNumber><TelephoneNumber>5074595285</TelephoneNumber><TelephoneNumber>5074593294</Telephone
Number><TelephoneNumber>5078284976</Te
>
>
>
>
>
> Here is a file that processes correctly for them...
>
> tpalrtap01 alert ~midwest $>head AmberAlert.xml
>
> <?xml version="1.0" encoding="us-ascii" ?>
> - <AmberAlertSubscriberDisconnects
> xmlns="http://syniverse.com/amber/common/vo">
> <CarrierID>3233</CarrierID>
> <FileTimestamp>2005-07-20T14:39:19</FileTimestamp>
> - <TelephoneNumbers>
> <TelephoneNumber>5072593433</TelephoneNumber>
> <TelephoneNumber>5078288301</TelephoneNumber>
> <TelephoneNumber>5074212905</TelephoneNumber>
> <TelephoneNumber>5072721626</TelephoneNumber>
> <TelephoneNumber>5078281781</TelephoneNumber>
>
> I am attaching my file so you can have a look.
>
> Thanks in advance! I'm really stuck, and have run out of ideas for this
> one!
>
>
>
>



Marvin Smit

2005-07-25, 6:04 pm

Hi,

Some things that spring to mind:

- The byte order switch (Intel) issue?
- Carrage return/Linefeed ARE NOT mandatory for it to be XML
compliant!
- Can you confirm that the "other party" is using an XML
1.0+Namespaces compliant parser?

I didn't see anything wrong with the XML and the attached file loads
also in Xalan.

Hope this helps,

Marvin Smit



On Mon, 25 Jul 2005 09:11:04 -0500, "Brian Cesafsky"
<Brian.Cesafsky@AutoTrackerPlus.com> wrote:

>Here is how my current poject is working.
>
>1) I have a very simple Output Schema
>2) I have a send pipeline that uses an XML assembler because I need to set
>the "Target charset" to ASCII.because the company that I send the output
>file to is running the file on a UNIX box
>3) I have a map that I use on a send port.
>4) The output is an XML file
>
>NOTE - I am not using an orchestration, I am simply using a filter on the
>send port to 'look' at the receive port.
>
>Everything processes just fine. I get my ouput file as I would expect.
>When I view it in IE, or Vis Studio, everyting looks fine. I FTP the file
>to a vendor, and he is having issues with the file. He is on a UNIX box,
>and when he does a "head" on the file (what ever that does), this is what MY
>file looks like to him (the issue seems to be that it is one long string)
>
>|tpalrtap01 alert ~midwest $>head AmberAlert.xml.original
>
><?xml version="1.0" encoding="us-ascii"?><AmberAlertSubscriberDisconnects
>xmlns="http://syniverse.com/amber/common/vo"><CarrierID>3233</CarrierID><FileTimestamp>2005-07-20T14:39:19</FileTimestamp><TelephoneNumbers><TelephoneNumber>5072593433</TelephoneNumber><TelephoneNumber>5078288301</TelephoneNumber><TelephoneNumber>5074212

905</TelephoneNumber><TelephoneNumber>5072721626</TelephoneNumber><TelephoneNumber>5078281781</TelephoneNumber><TelephoneNumber>3205837359</TelephoneNumber><TelephoneNumber>7122604550</TelephoneNumber><TelephoneNumber>5072722075</TelephoneNumber><Telephon
eNumber>5078220754</TelephoneNumber><TelephoneNumber>5072721745</TelephoneNumber><TelephoneNumber>5073828765</TelephoneNumber><TelephoneNumber>5073275768</TelephoneNumber><TelephoneNumber>5074595285</TelephoneNumber><TelephoneNumber>5074593294</TelephoneN
umber><TelephoneNumber>5078284976</Te
>
>
>
>
>
>Here is a file that processes correctly for them...
>
>tpalrtap01 alert ~midwest $>head AmberAlert.xml
>
><?xml version="1.0" encoding="us-ascii" ?>
>- <AmberAlertSubscriberDisconnects
>xmlns="http://syniverse.com/amber/common/vo">
><CarrierID>3233</CarrierID>
><FileTimestamp>2005-07-20T14:39:19</FileTimestamp>
>- <TelephoneNumbers>
><TelephoneNumber>5072593433</TelephoneNumber>
><TelephoneNumber>5078288301</TelephoneNumber>
><TelephoneNumber>5074212905</TelephoneNumber>
><TelephoneNumber>5072721626</TelephoneNumber>
><TelephoneNumber>5078281781</TelephoneNumber>
>
>I am attaching my file so you can have a look.
>
>Thanks in advance! I'm really stuck, and have run out of ideas for this
>one!
>
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com