cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping, get rid of ns1: prefix

Former Member
0 Kudos

Dear Experts,

do you know how to get rid of the "ns1:" prefixes in the target structures, after a (graphical) message mapping was made?

Should I use an additional XSLT/JAVA/... mapping step or is there any "more elegant" way to do this?

Any comments are welcome!

Thank you, best regards,

Andras

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm

use the XMLAnonymizerBean

or

use /people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi this trick !!!

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

just to close the thread correctly:

The XMLAnonymizerBean works great!

/another helpful blog /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean /

Thanks guys for the help, points are awarded.

Best regards,

Andras

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Andras,

Use Java Mapping to read that ns1 and replace it ....

But why do you need that .. Is there any specific requirement ...?

Regards,

sridhar reddy

Former Member
0 Kudos

Hi Guys,

you're very fast with the replies!

I have an XSD for the target format, which was imported as external definition.

It has its own namespace and we should keep it in the message.

In the mapping I use the external definition structure directly, so no message type can be used. That's why I can't use the "trick" from the weblog nr. 2769.

So the question is now more generic: if I use an external XSD, with own namespace, how to keep it in the target message in the original form?

I try now my luck with the XMLAnonymizerBean...

Thank you again,

Andras

Former Member
0 Kudos

Kovacs,

The same issue is discussed in this thread:

---Satish

Former Member
0 Kudos

Hey

dont put any entry in the XML namespace

thanx

ahmad