on 09-20-2010 7:09 AM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> - <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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check save_so node at target is mapped with the source node RECORD.
_Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.