on 04-04-2008 11:01 PM
HELLO !!
I have seen couple of foram messages where in people have suggested the option to use the JAVA mapping in XI to handle the special chars in message mapping.
I am wondering how the non-standard and non well formed xml data( e.g <tag> test&test </tag> )can be an input to the XI mappign ?
How does XI handles the non-format xml data ?
Non-formed : <tag> test&test </tag>
well Formed : <tag>test&test </tag>
~~ THANKS ~~
~~Peeru I
Edited by: Peeru Indrani on Apr 5, 2008 12:18 AM
If you don't have any payload-dependent processing in the message pipeline (for example, conditional routing), the message is processed up to the mapping step.
For XSLT & Message Mappings, the messages need to be well-formed XMLs.
For Java mappings, you can treat the messages before you actually parse it as an XML message (for example, you can input the stream into a "escapeSpecialChars" method).
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response Henrique.
Your reply really makes sense to me. I still have a question.
In all XI documentation, it is written that XI only deals with the well formed XML messages ( correct me if I am wrong) So when the sender system is sending an invalid formed XML data, How does it enter into the XI pipeline without an error and reaches the java mapping ?
>
> In all XI documentation, it is written that XI only deals with the well formed XML messages ( correct me if I am wrong)
Can you paste here an example of such documentation?
On the contrary, you can actually even handle non-text or non-XML files through XI. For example, there's a blog (by William Li, I think) that shows how to send pdf files through XI (using no repository objects).
So, if there's no payload-dependent processing, the message will reach up to the mapping step. You only won't be able to see the payload in the SXMB_MONI because it will error out since it's an invalid XML (you can right click and check the source code, anyway).
Try it on your own.
Regards,
Henrique.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.