cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove namespace prefix

Former Member
0 Kudos

hi,

i have a problem in receiver SOAP adapter because of namespace prefix.

so i have to remove the namespace prefix from the paylaod. but namespace should be there...

what are the possibilities to remove the namespace prefix alone from the payload?

Thanks & Regards,

Krish

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Check this blog:

Regards

Stefan

Answers (3)

Answers (3)

Former Member
0 Kudos

Import the xsd file, navigate to the tab with the generated wsdl file, copy this to an editor and edit the namespace. Then, import the edited wsdl file as an external definition.

Former Member
0 Kudos

hi

remove xmlns= "urn.xyz......." ,then you willnot get namespace prefix.

regards

kummari

Former Member
0 Kudos

hi,

where should i remove the namespace???

Krish

Former Member
0 Kudos

hi

remove it from xsd

it works

regards

kummari

Former Member
0 Kudos

thanks kummari...

i have tried ur suggestion....

but prefix got removed along with namespace..

i just want to remove the namespace prefix...

Krish

former_member187563
Contributor
0 Kudos

hi,

you have to simply add one module in your communication channel

that is XMLAnonymizerBean

you can refer below for help:

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

hope it helps.

regards,

ujjwal kumar

Former Member
0 Kudos

thanks a lot...

i tried this link...

is there an way to check whether the module is existing in my package...?

Former Member
0 Kudos

Open the wsdl in notepad and edit the namespace and reimport the wsdl hrough external definetions.

stefan_grube
Active Contributor
0 Kudos

It is available since XI 3.0 SP 14 and PI 7.0 SP 05.

Regards

Stefan

Former Member
0 Kudos

Hi,

Please let me know whether it is possible to get payload like given below:

<?xml version="1.0" encoding="UTF-8"?>

<MT_SAMPLE xmlns="urn:ns_sample_rad">

<NAME/>

</MT_SAMPLE>

Help me on this...

Krish

Edited by: Krish Krish on Sep 5, 2008 6:35 AM

stefan_grube
Active Contributor
0 Kudos

> Please let me know whether it is possible to get payload like given below:

yes.

Former Member
0 Kudos

Hi

check this link

To remove ns0 from source message in XML mapping.

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

Former Member
0 Kudos

hi malini,

thanks a lot...

i have tried the blog which you have provided..

its removing the prefix along with the namespace...

my problem is i want the namespace without prefx...

Krish

stefan_grube
Active Contributor
0 Kudos

sorry, wrong input.

Edited by: Stefan Grube on Sep 4, 2008 11:09 AM