cancel
Showing results for 
Search instead for 
Did you mean: 

remove ns0: from source message

Former Member
0 Kudos

In the message mapping, for the source message in the source XML, i get the following,

<ns0:MTPurchaseResponse xmlns:ns0="urn:itt.com:PurchaseReq">

....

....

...

</ns0:MTPurchaseResponse>

Is there any way that I can remove the ns0: stuff from root element.

And also the name space from the root element.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To remove the namespace have a look at question 12 (integration engine section) on the XI FAQ page

(link below)

remove XML namespace from the message type

Also refer

Thanks

Swarup

Answers (4)

Answers (4)

Former Member
0 Kudos

Have a look at weblock https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2769. [original link is broken] [original link is broken] [original link is broken]

Thanks,

Punit

Former Member
0 Kudos

ya there is a way to remove this.

This is the namespace reference of your source message.

To remove ns0:

Go to message type design of source message and remove the namespace under XML Namespace.

Check it.

Former Member
0 Kudos

hi,

when you have multiple namespaces defined in your XSD, you'll get these ns0, ns1 to identify which fields are from which name space. You cannot delete them. You'll have to generate the XML according to that.

regards

chandra

former_member187563
Contributor
0 Kudos

hi,

For changing the namespace and removing <ns0>, you have to simply add one module in your communication channel

that is XMLAnonymizerBean

you can refer below for help:

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

http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

hope it helps.

reward point 4 useful ans.

regards,

ujjwal kumar