on 10-28-2009 2:35 PM
Hi
For some reason PI 7.1 inserts xml namespaces "ns0", "ns1" etc into the tags in the xml Invoice defined as an external definition.
Hence it expects those ns0 namespaces in the incoming message, but the incoming message does not have those namespaces!
Instead, the incoming message adheres to the imported "External Definition" Invoice.xsd (see the file under this link: http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/ )
Where the namespaces mainly are "com:" or "main:".
I have tested it both using the test under message mapping, operation mapping and by dropping a message and let it go thru the pipeline but all fail.
My questions are:
1) why does PI insert the ns0 namespaces?
2) why does PI not accept my source document instance even though the instance adheres to the "rules" in the Invoice.xsd (and imported schemas) which is used as the source External message?
3) How do I fix this?
BR
MIkael
Hi ,
This blog might be useful to you:
Regards,
Ravi Kanth Talagana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi
Thanks for your answer :-). I saw the blog but unfortunately I am not using Data type definition, as I have imported the schema as an "External Definition" and am using this directly as the source "schema".
The source message (which adhers to the Invoice.xsd schema) looks like this:
<ns1:BuyersReferenceID schemeID=""
/Mikael
Try using XMLAnonymizerBean to remove the namespace :
http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/d169186a29570ae10000000a114a6b/content.htm
Pooja
Hi
I tried removing the namespaces from the invoice which is the source message in the test, but that did not solve the problem.
Why does PI insert the ns0 and ns1 namespaces?
Can it really be true, that I have to replace the namespaces in the source message from "com" to "ns0" all though the source message is valid according to the Invoice.xsd.
mikael
Hi
I tried removing the namespaces from the invoice which is the source message in the test, but that did not solve the problem.
Why does PI insert the ns0 and ns1 namespaces?
Can it really be true, that I have to replace the namespaces in the source message from "com" to "ns0" all though the source message is valid according to the Invoice.xsd.
mikael
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.