How to Convert XML to MessageElement[] Java

anantgupta

New Member
Hi I am doing Integration with a webservice which takes in MessageElement[] and the sample input they have provided is given in XML format. Well am really confused how to convert the XML into MessageElement[].The sample XML is :\[code\]'<DEBITS hasChanges="inserted" xmlns="">' .'<DEBIT_ID>-1</DEBIT_ID>' .'<EFFECTIVE_DATE>'.$FeeDate.'</EFFECTIVE_DATE>' .'<DEBIT_AMOUNT>'. $Fee.'</DEBIT_AMOUNT>' .'<MEMO><![CDATA['.$DEBIT_TYPE.']]></MEMO>' .'<ACCOUNT_ID>'.$GCSAccountId .'</ACCOUNT_ID>' .'<DEBIT_TYPE>'.$DEBIT_TYPE.'</DEBIT_TYPE>' .'<DAY_OF_MONTH>'.$Feeday.'</DAY_OF_MONTH>' .'<ACTIVE_FLAG>Y</ACTIVE_FLAG>' .'<OCCURS_NUM>1</OCCURS_NUM>' .'<CREATION_DATE></CREATION_DATE>' .'<MODIFIED_DATE></MODIFIED_DATE>' .'<MODIFIED_BY></MODIFIED_BY>' .'<DEBIT_AUTHORIZED></DEBIT_AUTHORIZED>' .'<DEBIT_AUTHORIZED_BY></DEBIT_AUTHORIZED_BY>' .'<REMAINING_OCCURRENCES>0</REMAINING_OCCURRENCES></DEBITS>';\[/code\]
 
Back
Top