cancel
Showing results for 
Search instead for 
Did you mean: 

CPI xml namespaces

mark_fryu
Participant
0 Kudos

what does it mean that I find fields starting with "ns3:" "ns2:" in a structure?

I read that they are namespaces, but how do I define them in the xml file? and what are they for?

Accepted Solutions (1)

Accepted Solutions (1)

kc_kristris
Active Participant
0 Kudos

Hello Mark,

You will see multiple namespaces in case of any multimapping kind of a structure. These will be taken care by the system internally once the source payload comes to hit the source structure.

If you want to see what the final XML payload format, run the integration in "trace" mode and see the payload. This will give you understanding on the structure.

Regards,

Kris

mark_fryu
Participant
0 Kudos

what is that URL supposed to do?

mark_fryu
Participant
0 Kudos

i have created this file from Eclipse, but when upload it into Message mapping of CPI, it doesn't appears the namespace "xsi'

Answers (1)

Answers (1)

MortenWittrock
Active Contributor

Hi Mark

It's an XML concept. Namespaces are used to differentiate between XML elements, that have the same name. That ns2 prefix, you refer to, will be defined somewhere in the document as xmlns:ns2="something" (the something here is often a URL, but doesn't have to be).

One thing to keep in mind is that if a document uses namespaces, and you want to use e.g. an XPath expression in a Router step, you need to declare the required namespaces in the iflow's runtime configuration. Otherwise, your XPath expressions will not work.

Regards,

Morten

mark_fryu
Participant
0 Kudos

what is that URL supposed to do?

MortenWittrock
Active Contributor
0 Kudos

Hi mark.fryu

Nothing, really; you can think of it as a unique ID. Something that identifies this particular namespace. A URL with an organization's domain name helps make it unique globally, but it doesn't have to point to a page with actual content.

Regards,

Morten

mark_fryu
Participant
0 Kudos

ok thanks, could you kindly write some examples with multiple namespaces and the fields they refer to?

MortenWittrock
Active Contributor
0 Kudos

Hi mark.fryu

You can find some examples here.

Regards,

Morten

mark_fryu
Participant
0 Kudos

i have created this file from Eclipse, but when upload it into Message mapping of CPI, it doesn't appears the namespace "xsi'

MortenWittrock
Active Contributor
0 Kudos

Hi mark.fryu

I believe I've answered your namespaces question. If you have another question, please post that separately and add all required details.

Regards,

Morten