cancel
Showing results for 
Search instead for 
Did you mean: 

File Sender CC: Problems with XML namespace

Former Member
0 Kudos

Hello,

is it necessary that an XML file that is read by a file sender communication channel uses exactly the same namespace as the repository namespace the appropriate data / message type is placed in?

Files that did not contain the same namespace as the repository namespace failed. Even when setting a custom XML namespace in the appropriate message type, that corresponds to the XML namespace it did not work.

Just wondering what happens in case the XML namespace cannot be modified and does not correspond to the repository namespace...

Thanks for your advice.

Accepted Solutions (0)

Answers (4)

Answers (4)

stefan_grube
Active Contributor
0 Kudos

> is it necessary that an XML file that is read by a file sender communication channel uses exactly the same namespace as the repository namespace the appropriate data / message type is placed in?

each node and element in an XML document is identified with its name and namespace.

If name or namespace is different, then the node or element is different.

http://www.w3.org/TR/REC-xml-names/#sec-intro

when you are not able to create the correct XML structure with ESR data types, you have to use an external editor for creating the correct xsd and upload this to ESR.

This is necessary for example when the XML file has several different namespaces in the XML or when the ndes under the rott should have a namespace.

With standard ESR tools the message type can have only one namespace assigned to the root tag only.

Former Member
0 Kudos

As Ashish suggested, removing namespace or copying the same namespace will solve your problem:

A couple of ways to do it

1. As suggested in Shadab's blog:http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2769. [original link is broken] [original link is broken] [original link is broken] remove the value in XML namespace in MT.

2. Use XMLAnonymizerBean as suggested in the blog: /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

aashish_sinha
Active Contributor
0 Kudos

Try removing namespace from Message Type and activate it. It will solve your problem.

Regards

Aashish Sinha

Former Member
0 Kudos

Hi Florian,

The namespace in the xml message and the one in the repository are not matched by the sender communication channel. If you post the error message you got you might be able to help you