on 06-10-2008 3:08 PM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
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.