cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping : File2SOAP

Former Member
0 Kudos

Hi All,

I m doing File2SOAP interface. My input file is as below and Target SOAPAction is given by client below as well.

Client requirement is get 1 structure with all fields in output/target file one by one. if I exceute this it is giving me only 1st structure with fields not 2nd and 3rd.

How to map in this case ? Thanks.

INPUT File:-

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

- <ns0:MT_INVOICE_FILE xmlns:ns0="http://tempuri.org">

- <RECORD>

<Invoice_No>1091902118</Invoice_No>

<Invoice_Date>20100917</Invoice_Date>

<Plant>PG01</Plant>

<Item_No>000001</Item_No>

<Quantity>150.000</Quantity>

<Item_Code>G1</Item_Code>

- <RECORD>

<Invoice_No>SAME</Invoice_No>

<Invoice_Date>SAME</Invoice_Date>

<Plant>PG01</Plant>

<Item_No>000001</Item_No>

<Quantity>150.000</Quantity>

<Item_Code>G1</Item_Code>

</RECORD>

- <RECORD>

<Invoice_No>SAME</Invoice_No>

<Invoice_Date>SAME</Invoice_Date>

<Plant>PG01</Plant>

<Item_No>000002</Item_No>

<Quantity>95.000</Quantity>

<Item_Code>F1103A050150</Item_Code>

</RECORD>

</RECORD>

</ns0:MT_INVOICE_FILE>

SOAPAction/Target :-

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

- <ns1:save_so xmlns:ns1="http://tempuri.org/">

<ns1:Invoice_No>1091902118</ns1:Invoice_No>

<ns1:Invoice_Date>20100816</ns1:Invoice_Date>

<ns1:Plant>1010</ns1:Plant>

<ns1:Item_No>000002</ns1:Item_No>

<ns1:Quantity>10000</ns1:Quantity>

<ns1:Item_Code>F1103A050150</ns1:Item_Code>

</ns1:save_so>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Anshul,

To add further, check if the occurence of the node "save_so" in the SOAP message(you can check in Message mapping tab), is 0...Unbounded.

Thanks,

Divyesh Vasani

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

> - <ns1:save_so xmlns:ns1="http://tempuri.org/">

It is not possible to have a root node more than once in an XML structure.

By the way: The XML namespace should not be tempuri.org.

Tell your client, that the XML structure should be compliant to XML standards.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

What is the ouput are you getting when you test existing mapping in Mapping editor?? are you getting correct out put or onlly one record,first debug your mapping .

most likely the occurace field <ns1:save_so xmlns:ns1="http://tempuri.org/"> save_so defined as 1, it suppose to be o to unbounded.

Regards,

Raj

Former Member
0 Kudos

Check save_so node at target is mapped with the source node RECORD.

_Supriya.