cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Namespace in Sender File Adapter Scenario.

former_member181928
Participant
0 Kudos

Hi All

I have a scenario where XI has to Pick Up XML a file and process it. The structure of the file is as follows

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

<Header>

...

<Seg1>

</Seg1>

......

.......

</Header>

This file does not contain any any namespace tag. I guess XI would not be able to pick up this file if there is no namespace in the XML file . The file expected by XI would be something like this.

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

<ns0:MessageTypeName xmlns:ns0="...namespace...">

<Header>

...

<Seg1>

</Seg1>

......

.......

</Header>

</ns0:MessageTypeName>

Is there a way this can be handled at the File Sender adapter side . I am aware about adding adapter module. Is there any other way to add the missing two namespace tags at the top and bottom of the file .

any help would be appreciated.

regards

Nilesh .

Edited by: Nilesh Taunk on Apr 7, 2008 2:11 PM

Accepted Solutions (1)

Accepted Solutions (1)

aashish_sinha
Active Contributor
0 Kudos

Hi Nilesh,

Yes it is possible in File sender adapter to give the namespace. In FCC you can give inside Document Specification.

Under Document Name, enter the name of the XML document.

The document name is inserted in the message as the main XML tag. This is mandatory for the mapping.

Under Document Namespace, enter the namespace of the document.

The namespace is added to the name of the document. This is mandatory for the mapping

I hope this will help you.

Regards

Aashish Sinha

Answers (1)

Answers (1)

Former Member
0 Kudos

Nilesh,

I don't understand it. Is it a file sender or a jdbc sender?

The namespace is added automatically to the message. What exactly do you need?

Peter