Author |
Message
|
LH33 |
Posted: Tue Aug 15, 2006 4:54 am Post subject: Message going to the Dead Letter Queue |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
Hi,
The following line of an XML transaction causes the message to go to the Dead Letter Queue as soon as it hits the input queue of a broker flow:
<TestTag>Testing</TestTag>
The two characters in front of the word Testing are the keyboard sequence "Ctrl V".
When I remove the two characters, the transaction works fine. These characters are put there when a system user is copying information into a free form field which then is used as the contents of the XML tag.
Is there any way to handle these characters in the broker so that the message does not immediately go to the Dead Letter queue upon hitting the input queue?
Thanks for any help! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 15, 2006 5:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Read the message as BLOB, parse out the bad characters manually, and then reparse as XML.
Or fix the webapp so that the form doesn't allow bad characters! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
LH33 |
Posted: Tue Aug 15, 2006 5:11 am Post subject: |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
The characters display as spaces on the input app. It gets there when a user is copying and pasting using Ctrl C and then Ctrl V. How would I parse those particular characters out manually. What would I look for?
Thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 15, 2006 5:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You'd have to look for byte values.
You really want to fix the webapp instead. It's not producing valid XML - ergo it's not meeting the contract between itself and your message flow. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 15, 2006 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
LH33 wrote: |
. What would I look for? |
Hex values that form characters outside the XML specification? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
LH33 |
Posted: Tue Aug 15, 2006 5:26 am Post subject: |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
Thanks for the information!! Just trying to now see how I can fix the app not to allow those characters when a user is copying and pasting and doesn't have anything on the clipboard at the time they hit the Ctrl V which is what is causing the weird characters. |
|
Back to top |
|
 |
|