on 03-27-2007 5:24 AM
Hi,
After using Conversion Agent module, the XML message causes a mapping exception in runtime.
By running Test Configuration and comparing with message type in IR, a very small difference makes the trouble.
"MT_invoice_out" is the message type.
The XML content in IR, correct one is:
<ns0:MT_invoice_out xmlns:ns0="http://com.hp.sap.jerry.ca">
.....
</ns0:MT_invoice_out>
The XML content in runtime, incorrect one is:
<MT_invoice_out xmlns="http://com.hp.sap.jerry.ca">
.......
</MT_invoice_out>
The only difference is "ns0". However, I do use the same XSD exported from XI when converting PDF to XML by Conversion Agent.
So is there any way to put "ns0" to generated XML message?
Hi,
Use the XMLAnonymizerBean.
/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the prefix is the cause of my problem.
I can easily prove it by test in message mapping or by test configuration.
I don't know if you have tried Conversion Agent to translate a PDF to XML file before. I wonder there is any option that I can do some setting in CA to add the prefix to the root element only.
><i>I don't know if you have tried Conversion Agent to translate a PDF to XML file before.</i>
Did try it. At the tech ED bangalore in one of the hands on. but you know the Hands on Sessions are if you have attended the tech Ed's.
I do hope there is a simple solution, but the worst case woulbe workaround like,.
1. Wrtie a module that will do this.
2. Write a java mapping that will just add the prefix and then the output of this java mapping will be the input to the graphical mapping ( interface mapping will cotnain 2 mapping programs)
Regards
Bhavesh
Thank God! It's solved finally.
After I reviewed all definitions in IR, the "XML namespace" when defining message type catched my eyes. After removal, the XML content has no namespace contained any more. I restarted my case, the expected result came out in a few seconds.
Thank all of you for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
to write a module tab see below link
https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.