cancel
Showing results for 
Search instead for 
Did you mean: 

Source structure is not accepting the file

Former Member
0 Kudos

Hi,

I have imported an external definition but its not accepting the file structure send by user..Its showing redcolour fields in the mapping of the test tab aslo when i pasted the payload..

This is the sample structure of the xml file from the test tab of mapping of my external definition..

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

<ns0:MT_Policy xmlns:ns0="http://www.policy.en/XI/Swiss">

<heading>

<billcode>1</billcode>

<version>01</version>

<source>123</source>

<destination>424</destination>

<date>43</date>

<hour>4234</hour>

<code>324</code>

</heading>

This is the file sent by the user

<?xml version='1.0'encoding='ISO-8859-1'?>

<MT_Policy>

<heading>

<billcode>420054842</billcode>

<version>001</version>

<source>EN12</source>

<destination>0230</destination>

<date>2011-01-04</date>

<hour>14:09:03</hour>

<code>01</code>

</heading>

Please let me know,for me it looks like the strctures are same..Why is it not accepting..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Namespace is missing in the data send by user....

to test the same copy paste the namespace of sample payload and add the same to the message received from user it will work...

HTH

Rajesh

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

it seems you have created data and message type for the structure, thats why it is having NS0 tags and XML name space,

even encoding also different.

you have to handle this,best way is convert your test data in to XSD using any XML tool,and import it..it will work.

or

remove XML Name space in message type and try it,i think it will work.

Regards,

Raj

Former Member
0 Kudos

Thanks

Any blog/link for converting xml to Xsd