cancel
Showing results for 
Search instead for 
Did you mean: 

xml name space issue

Former Member
0 Kudos

Hi,

My xsd starts like this

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

And my expected output is

<Rootelement xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="myxsd_v1.0.xsd">

but currently my output is

<Rootelement>

-


How to acheive my required output. I tried using xml anonymiser bean with accept namespaces as http://www.w3.org/2001/XMLSchema ''

and anonymiser quote as '

Anonymiser bean is above callsapadapter

But still the output is not differing . how to get my expetecd output??

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You can use Java Mapping/XSLT can achieve your requirement. You could also try using the Load XML option in message mapping.

Regards,

Mark

Former Member
0 Kudos

HI mark,

i am using 7.0 version.

Can you explain more about loadxml or xslt .. How to acheive it. As we dont have any nwds or compilers for java mapping.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Load xml is a feature in message mapping wherein instead of using xsd/dtd/wsdl/messageType you can load a blank XML. You can do this by clicking the select message icon in ESR.

As for XSLT, you can search in SDN for code examples (in wiki section).

Hope this helps,

Mark

Former Member
0 Kudos

HI

I used xslt code and changed the namesapce. But it's only showing Header there's no payload.

i placed the xsl code in IM after MM. My source structure is too big so it cant go for complete xslt mapping. How can i get the same namespace which xslt mapping is giving as output along with my MM output?

Any ideas please?

Former Member
0 Kudos

Hi Prabhas,

Can you share your source and target schema? just the xml tags will do.

Regards,

Nikhil

Former Member
0 Kudos

Hi Nikhil,

Source is idoc and target i have given above..

Rest is the data elements

Former Member
0 Kudos

Hi,

For the target structure, try to use the External Definition.

or

In the Message type , please remove the namespace.....

Hope this will solve your isssue...

Regards,

Jude.