cancel
Showing results for 
Search instead for 
Did you mean: 

XI 3.0 SP10, ns question/message mapping question

0 Kudos

Hi,

Iam a newbie to XI and have, properbly, some basic questions.

Iam setting up a scenario where we will send despatch advice to our partner.

For mapping this I have uploaded an external definition (xsd)file to generate the structure. So far so good!

I have then done the message mapping using the graphical mapping tool and overall it seems fine, but however in the generated file I get some information which I would not like to have.

The source structure is an IDoc DESADV.DELVRY01 and receiver is the external definition, which in brief looks something like this, of course with more levels.

-> Envelope

--> Header

---> delivery

---> properties

---> manifest

--> Body

---> DESADV

-


> UNA

-


> UNB

-


> UNG

-


> UNH

-


> BGM

-


> DTM

-


> g001

-


> g002

-


> g002

-


> g010

-


> UNT

-


> UNZ

And here is an example from the generated file

...

<ns5:g002>

<ns5:NAD>

<ns5:e01_3035>SH</ns5:e01_3035>

<ns5:cmp01>

<ns5:e01_3039>1000</ns5:e01_3039>

</ns5:cmp01>

</ns5:NAD>

</ns5:g002>

<ns5:g002 xmlns:ns5="http://www.test.com/MBM">

<ns5:NAD xmlns:ns5="http://www.test.com/MBM">

<ns5:e01_3035 xmlns:ns5="http://www.test.com/MBM">BY</ns5:e01_3035>

<ns5:cmp01 xmlns:ns5="http://www.test.com/MBM">

<ns5:e01_3039 xmlns:ns5="http://www.test.com/MBM">2100</ns5:e01_3039>

</ns5:cmp01>

</ns5:NAD>

</ns5:g002>

...

Now (finally) to the first question, for the first g002 segment it looks ok. <ns5:g002>, but in the second I also get the <ns5:g002 xmlns:ns5="http://www.test.com/MBM"> information. Why is this, has it something todo with how I have uploaded the external definition?

Second question, the prefix to each field "ns5:" is this

necessary or can it be suppressed in any way?

Thanks a lot in advance for your kind help.

Regards,

Fredrik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

<i>Second question, the prefix to each field "ns5:" is this

necessary or can it be suppressed in any way?

</i>

u can suppress it by removing the xml namesspace while cretaing the message interface.

Regards

Priyanka

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Fredrik,

first question: it has to do with ur message mapping. I m not a friend of that, but many customers want 2 have it. If u ve the choice, take a XSL; much easier 2 understand.

Regards,

Udo

0 Kudos

Hi all,

Thanks a lot for your inouts. I will experiment a little more.

Regards,

Fredrik

Former Member
0 Kudos

Hi Fredrik,

Its not a problem with your external definition. Naturally, when you generate an instance of an XSD(XML Schema), the produced XML file comes with some default namesapces, as in your case. But that doest mean that XML must contain something like 'ns5:'. Name spaces are used for unique identification, like GUID in SAP. It's advisable to go with namesapces.

Regards,

Sreenivas.