cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get a ns prefix in my XI2.0 File adapter

Former Member
0 Kudos

I am using a XI2.0 File adapter to send a file from my pc to XI3.0.

My mapping expects:

<ns1:CAMS_MT_LG <b>xmls:ns1="</b>http://CAMS_NS_LG">

If I have

xml.documentName=ns2:CAMS_MT_LG

xml.documentNamespace=ns2:http://CAMS_NS_LG

It generates

<ns1:CAMS_MT_LG <b>xmls="ns1:</b>http://CAMS_NS_LG">

How do I get the file adapter to generate the correct format?

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Set the parameters like follows:

xml.documentName=CAMS_MT_LG

xml.documentNamespace=http://CAMS_NS_LG

The namespace prefix will be set automatically

Regards

Stefan

udo_martens
Active Contributor
0 Kudos

Hi Patrick,

I prefer to use XSLT-Stylesheets where you can read any messages and create namespaces in an easy way.

Regards Udo