cancel
Showing results for 
Search instead for 
Did you mean: 

XML file to RFC

Former Member
0 Kudos

Hi,

i have scenario (XML file to RFC), it's by BPM, I can see XML content by file sender adapter but can't get detail field data into my data type of interface. what's wrong, please advise! Thanks!

my data type as follows,

EXPORT Complex type

SHIP element

INVOICE element

and file content as follow

<?xml version="1.0" ?>

- <EXPORT>

<SHIP>A</SHIP>

<INVOICE>ZZ12387379</INVOICE>

<?xml version="1.0" ?>

</EXPORT>

Accepted Solutions (1)

Accepted Solutions (1)

sunilchandra007
Active Contributor
0 Kudos

Hi,

If this is the your source XML file, then it is not proper.

Remove the bold line and try again.

<?xml version="1.0" ?>

<EXPORT>

<SHIP>A</SHIP>

<INVOICE>ZZ12387379</INVOICE>

<?xml version="1.0" ?>

</EXPORT>

Regards,

Chandra

Former Member
0 Kudos

Sorry, it's typo

XML file is

<?xml version="1.0" ?>

<EXPORT>

<SHIP>A</SHIP>

<INVOICE>ZZ12387379</INVOICE>

</EXPORT>

udo_martens
Active Contributor
0 Kudos

Hi Robert,

there is no namespace. Does your message type have no namespace?

Regards,

Udo

Former Member
0 Kudos

no,

i have namespace as follow,

http://aaa.bbb.com/SVRFIS/Forwarder_File

udo_martens
Active Contributor
0 Kudos

Hi Robert,

then refer it in your message root as attribute: xmlns:http://aaa.bbb.com/SVRFIS/Forwarder_File

Regards,

Udo

Former Member
0 Kudos

I still can't understand, Could you give me more information? Thanks!

former_member200962
Active Contributor
0 Kudos

>

> I still can't understand, Could you give me more information? Thanks!

when you receive/ process an XML....this XML has a namespace associated to it.....which in your case should be http://aaa.bbb.com/SVRFIS/Forwarder_File.

However looking at your Payload ther is no namespace in it....so what you do is...open the Interface/Message mapping--- go to the Test tab and click on the SRC tab and then check what/ how the namespace should be or rather how the XML should be while testing...it would be something like:

<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Name xmlns:ns0="http://aaa.bbb.com/SVRFIS/Forwarder_File">

Former Member
0 Kudos

it still can't get field data content in message after add follows in my XML file

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

<ns0:MT_Name xmlns:ns0="http://aaa.bbb.com/SVRFIS/Forwarder_File">

what's wrong! please advise,Thanks!

Shabarish_Nair
Active Contributor
0 Kudos

did you try debugging the mapping?

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

former_member200962
Active Contributor
0 Kudos

>

> it still can't get field data content in message after add follows in my XML file

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

> <ns0:MT_Name xmlns:ns0="http://aaa.bbb.com/SVRFIS/Forwarder_File">

>

> what's wrong! please advise,Thanks!

you just need to check in the SRC tab (IM/ MM ---> test) what is the format of the first two lines .....

if there is no namespace alongwith MT then check if there is any in the MT definition....if there is no reference to namespace at both the locations then you need not add it in the XML...

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>but can't get detail field data into my data type of interface. what's wrong, please advise! Thanks!

maybe you created the data type in a wrong way?

create a mapping and put your message type (based on this data type) inside

open TEST tab and you will see how the data type is represented there

is it the same as your XML file ?

Regards,

Michal Krawczyk