cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch source xml file without namespace

Former Member
0 Kudos

Dear friends,

I am still facing one more problem. Whenever they are placing xml it is not having the namespace.

I am manually adding the namespace as shown in the bold .

Due to manually adding the namespace i am not able to schedule the file adapter.

Hoe can i solve this issue...

Source xml file after adding the namespace Manually

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

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

<PeopleMsg>

<Records>

<Record><FirstName>Rob</FirstName><LastName>Wade</LastName><MiddleNameOrInitials>GD</MiddleNameOrInitials><Addresses><AddressType><AddressTypeName>Business</AddressTypeName></AddressType><AddressCountry><ISO2Code>ZA</ISO2Code></AddressCountry><OfficeName>Johannesburg - Fin Risk Adv * Jhb</OfficeName><AddressLine1>KPMG Crescent 85 Empire Road Parktown</AddressLine1><City>Johannesburg</City><PostalCode>2193</PostalCode></Addresses><ElectronicContactInfo><ElectronicContactType><CommunicationTypeCode>PHONE</CommunicationTypeCode></ElectronicContactType><CommunicationCountry><ISO2Code>ZA</ISO2Code></CommunicationCountry><CommunicationData>+27 (11) 647-5332</CommunicationData></ElectronicContactInfo><IDs><IDType><IDTypeCode>1</IDTypeCode></IDType><IDCountry><ISO2Code>ZA</ISO2Code></IDCountry><IDs>12418</IDs></IDs></Record>

<Record><FirstName>Zaheer</FirstName><LastName>Wadee</LastName><Addresses><AddressType><AddressTypeName>Business</AddressTypeName></AddressType><AddressCountry><ISO2Code>ZA</ISO2Code></AddressCountry><OfficeName>Johannesburg - FS Audit * Jhb</OfficeName><AddressLine1>KPMG Crescent 85 Empire Road Parktown</AddressLine1><City>Johannesburg</City><PostalCode>2193</PostalCode></Addresses><ElectronicContactInfo><ElectronicContactType><CommunicationTypeCode>PHONE</CommunicationTypeCode></ElectronicContactType><CommunicationCountry><ISO2Code>ZA</ISO2Code></CommunicationCountry><CommunicationData>+27 (11) 647-5047</CommunicationData></ElectronicContactInfo><IDs><IDType><IDTypeCode>1</IDTypeCode></IDType><IDCountry><ISO2Code>ZA</ISO2Code></IDCountry><IDs>7585</IDs></IDs></Record>

</Records>

</PeopleMsg>

</ns0:GIS_SOURCE_MT>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Karthik

If you dont use Name space it will work. IF you have created DT in XI then go to MT remove the Name space and XI also don't require name space in the source file. NO need to create it manually.

Thanks

Gaurav

Former Member
0 Kudos

this my help you..

Regards,

Sarvesh

VijayKonam
Active Contributor
0 Kudos

If all that you need is your message type name - GIS_SOURCE_MT, change your XML message type name as per the XML..!!

VJ

Former Member
0 Kudos

Hey

Why do you need namespace in the incoming payload?

are you using this namespace somewhere in message processing?

Thanx

Aamir