cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch XML file thru Sender File adapter

Former Member
0 Kudos

Dear friends,

I am having a scenario of fetching an xml file through sender file adapter. When i am testing my mapping in Test mode of message mapping it is working fine but when i fetch the real source xml file which is not having the XML namespace and Source Message type.

It is throwing error in Runtime.

At the same time when i edit the source xml file with the XML NAMESPACE & Source Meessage type it is passing successfully to the target system.

Kindly tell me friends how to solve this problem.

Take care,

Karthik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

can you post the xml please. xml contains the Message type and the namespace unless ur mapping is doing something.

Former Member
0 Kudos

Hi Anand,

Sending Source xml wont have any xml namespace. I am manually adding the namespace to source xml file from Test mode in Meesage mapping .

Former Member
0 Kudos

Hi Friends,

My Source XML file:

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

<PeopleMsg>

<Records>

<Record>

<FirstName>Dawei</FirstName>

<LastName>He</LastName>

<MiddleNameOrInitials>D</MiddleNameOrInitials>

<IDs>

<IDType>

<IDTypeName>Employee ID (Country Equivalent)</IDTypeName>

</IDType>

<IDs>999999999999</IDs>

</IDs>

</Record>

</Records>

</PeopleMsg>

My xml file in the Test Tab of Message mapping:

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

<ns0:Source_MT xmlns:ns0="http://kpmg.com/ibs/mdm">

<PeopleMsg>

<Records>

<Record>

<FirstName>Dawei</FirstName>

<LastName>He</LastName>

<MiddleNameOrInitials>D</MiddleNameOrInitials>

<IDs>

<IDType>

<IDTypeName>Employee ID (Country Equivalent)</IDTypeName>

</IDType>

<IDs>999999999999</IDs>

</IDs>

</Record>

</Records>

</PeopleMsg>

</ns0:Source_MT>

Former Member
0 Kudos

Please check this blog.

U delete the XML namespace in Message Type of source Message Type.

Use PeopleMsg as message Type name...

it will work.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Karthik,

You need to include your namespace and message type in the input file. Then only your scenario will be executing fine .

Regards,

leela